Skip to content

Commit

Permalink
special handling of the bgsound tag in FF removed. BGSound is now han…
Browse files Browse the repository at this point in the history
…dled as unknown tag in all browsers. Looks like this was a leftover from the IE days.
  • Loading branch information
rbri committed Oct 15, 2024
1 parent 1efc470 commit 737dbdb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 55 deletions.
4 changes: 4 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

<body>
<release version="4.5.0" date="xxxx, 2024" description="Chrome/Edge 129, Firefox 131, FirefoxESR 128, WebWorker, Bugfixes">
<action type="update" dev="rbri">
Special handling of the bgsound tag in FF removed. BGSound is now handled as unknown tag in all browsers.
Looks like this was a leftover from the IE days.
</action>
<action type="fix" dev="rbri">
Function initHashChangeEvent() is no longer available in FF_ESR.
</action>
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/org/htmlunit/BrowserVersionFeatures.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ public enum BrowserVersionFeatures {
@BrowserFeature({CHROME, EDGE})
JS_AUDIO_PROCESSING_EVENT_CTOR,

/** HTMLBGSoundElement reported as HTMLUnknownElement. */
@BrowserFeature({FF, FF_ESR})
JS_BGSOUND_AS_UNKNOWN,

/** toDataURL for canvas returns the CHROME version of the PNG. */
@BrowserFeature({CHROME, EDGE})
JS_CANVAS_DATA_URL_CHROME_PNG,
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/org/htmlunit/html/DefaultElementFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class DefaultElementFactory implements ElementFactory {
KEYGEN_, HtmlAbbreviated.TAG_NAME, HtmlAcronym.TAG_NAME,
HtmlAnchor.TAG_NAME, HtmlAddress.TAG_NAME, HtmlArea.TAG_NAME,
HtmlArticle.TAG_NAME, HtmlAside.TAG_NAME, HtmlAudio.TAG_NAME,
HtmlBackgroundSound.TAG_NAME, HtmlBase.TAG_NAME, HtmlBaseFont.TAG_NAME,
HtmlBase.TAG_NAME, HtmlBaseFont.TAG_NAME,
HtmlBidirectionalIsolation.TAG_NAME, HtmlBidirectionalOverride.TAG_NAME, HtmlBig.TAG_NAME,
HtmlBlink.TAG_NAME, HtmlBlockQuote.TAG_NAME, HtmlBody.TAG_NAME, HtmlBold.TAG_NAME,
HtmlBreak.TAG_NAME, HtmlButton.TAG_NAME, HtmlCanvas.TAG_NAME, HtmlCaption.TAG_NAME,
Expand Down Expand Up @@ -197,10 +197,6 @@ public HtmlElement createElementNS(final SgmlPage page, final String namespaceUR
element = new HtmlAudio(qualifiedName, page, attributeMap);
break;

case HtmlBackgroundSound.TAG_NAME:
element = new HtmlBackgroundSound(qualifiedName, page, attributeMap);
break;

case HtmlBase.TAG_NAME:
element = new HtmlBase(qualifiedName, page, attributeMap);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@
import org.htmlunit.javascript.host.html.HTMLAnchorElement;
import org.htmlunit.javascript.host.html.HTMLAreaElement;
import org.htmlunit.javascript.host.html.HTMLAudioElement;
import org.htmlunit.javascript.host.html.HTMLBGSoundElement;
import org.htmlunit.javascript.host.html.HTMLBRElement;
import org.htmlunit.javascript.host.html.HTMLBaseElement;
import org.htmlunit.javascript.host.html.HTMLBodyElement;
Expand Down Expand Up @@ -590,7 +589,7 @@ public final class JavaScriptConfiguration extends AbstractJavaScriptConfigurati
Geolocation.class, GeolocationCoordinates.class, GeolocationPosition.class, GeolocationPositionError.class,
HashChangeEvent.class, Headers.class, History.class,
HTMLAllCollection.class, HTMLAnchorElement.class, HTMLAreaElement.class, HTMLAudioElement.class,
HTMLBaseElement.class, HTMLBGSoundElement.class,
HTMLBaseElement.class,
HTMLBodyElement.class, HTMLBRElement.class, HTMLButtonElement.class,
HTMLCanvasElement.class, HTMLCollection.class,
HTMLDataElement.class, HTMLDataListElement.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public class XMLSerializer extends HtmlUnitScriptable {
private static final Set<String> NON_EMPTY_TAGS = new HashSet<>(Arrays.asList(
HtmlAbbreviated.TAG_NAME, HtmlAcronym.TAG_NAME,
HtmlAnchor.TAG_NAME, HtmlAddress.TAG_NAME, HtmlAudio.TAG_NAME,
HtmlBackgroundSound.TAG_NAME,
HtmlBidirectionalOverride.TAG_NAME, HtmlBig.TAG_NAME, HtmlBlink.TAG_NAME,
HtmlBlockQuote.TAG_NAME, HtmlBody.TAG_NAME, HtmlBold.TAG_NAME,
HtmlButton.TAG_NAME, HtmlCanvas.TAG_NAME, HtmlCaption.TAG_NAME,
Expand Down
43 changes: 0 additions & 43 deletions src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2331,49 +2331,6 @@ public void audio() throws Exception {
EDGE = "constructor()",
FF = "constructor()",
FF_ESR = "constructor()")
@HtmlUnitNYI(FF = "accessKey[GSCE],autofocus[GSCE],"
+ "blur(),click(),constructor(),contentEditable[GSCE],dataset[GCE],dir[GSCE],"
+ "enterKeyHint[GSCE],focus(),hidden[GSCE],innerText[GSCE],isContentEditable[GCE],lang[GSCE],"
+ "offsetHeight[GCE],offsetLeft[GCE],offsetParent[GCE],offsetTop[GCE],offsetWidth[GCE],"
+ "onabort[GSCE],onanimationcancel[GSCE],onanimationend[GSCE],onanimationiteration[GSCE],"
+ "onanimationstart[GSCE],onblur[GSCE],oncanplay[GSCE],oncanplaythrough[GSCE],onchange[GSCE],"
+ "onclick[GSCE],onclose[GSCE],oncontextmenu[GSCE],oncopy[GSCE],oncuechange[GSCE],oncut[GSCE],"
+ "ondblclick[GSCE],ondrag[GSCE],ondragend[GSCE],ondragenter[GSCE],ondragleave[GSCE],ondragover[GSCE],"
+ "ondragstart[GSCE],ondrop[GSCE],ondurationchange[GSCE],onemptied[GSCE],onended[GSCE],onerror[GSCE],"
+ "onfocus[GSCE],ongotpointercapture[GSCE],oninput[GSCE],oninvalid[GSCE],onkeydown[GSCE],"
+ "onkeypress[GSCE],onkeyup[GSCE],onload[GSCE],onloadeddata[GSCE],onloadedmetadata[GSCE],"
+ "onloadstart[GSCE],onmousedown[GSCE],onmouseenter[GSCE],onmouseleave[GSCE],onmousemove[GSCE],"
+ "onmouseout[GSCE],onmouseover[GSCE],onmouseup[GSCE],onmozfullscreenchange[GSCE],"
+ "onmozfullscreenerror[GSCE],onpaste[GSCE],onpause[GSCE],onplay[GSCE],onplaying[GSCE],"
+ "onpointercancel[GSCE],onpointerdown[GSCE],onpointerenter[GSCE],onpointerleave[GSCE],"
+ "onpointermove[GSCE],onpointerout[GSCE],onpointerover[GSCE],onpointerup[GSCE],onprogress[GSCE],"
+ "onratechange[GSCE],onreset[GSCE],onresize[GSCE],onscroll[GSCE],onscrollend[GSCE],"
+ "onseeked[GSCE],onseeking[GSCE],"
+ "onselect[GSCE],onselectionchange[GSCE],onselectstart[GSCE],onstalled[GSCE],onsubmit[GSCE],"
+ "onsuspend[GSCE],ontimeupdate[GSCE],ontoggle[GSCE],ontransitioncancel[GSCE],ontransitionend[GSCE],"
+ "ontransitionrun[GSCE],ontransitionstart[GSCE],onvolumechange[GSCE],onwaiting[GSCE],outerText[GSCE],"
+ "spellcheck[GSCE],style[GSCE],tabIndex[GSCE],title[GSCE]",
FF_ESR = "accessKey[GSCE],autofocus[GSCE],"
+ "blur(),click(),constructor(),contentEditable[GSCE],dataset[GCE],dir[GSCE],"
+ "enterKeyHint[GSCE],focus(),hidden[GSCE],innerText[GSCE],isContentEditable[GCE],lang[GSCE],"
+ "offsetHeight[GCE],offsetLeft[GCE],offsetParent[GCE],offsetTop[GCE],offsetWidth[GCE],"
+ "onabort[GSCE],onanimationcancel[GSCE],onanimationend[GSCE],onanimationiteration[GSCE],"
+ "onanimationstart[GSCE],onblur[GSCE],oncanplay[GSCE],oncanplaythrough[GSCE],onchange[GSCE],"
+ "onclick[GSCE],onclose[GSCE],oncontextmenu[GSCE],oncopy[GSCE],oncuechange[GSCE],oncut[GSCE],"
+ "ondblclick[GSCE],ondrag[GSCE],ondragend[GSCE],ondragenter[GSCE],ondragleave[GSCE],ondragover[GSCE],"
+ "ondragstart[GSCE],ondrop[GSCE],ondurationchange[GSCE],onemptied[GSCE],onended[GSCE],onerror[GSCE],"
+ "onfocus[GSCE],ongotpointercapture[GSCE],oninput[GSCE],oninvalid[GSCE],onkeydown[GSCE],"
+ "onkeypress[GSCE],onkeyup[GSCE],onload[GSCE],onloadeddata[GSCE],onloadedmetadata[GSCE],"
+ "onloadstart[GSCE],onmousedown[GSCE],onmouseenter[GSCE],onmouseleave[GSCE],onmousemove[GSCE],"
+ "onmouseout[GSCE],onmouseover[GSCE],onmouseup[GSCE],onmozfullscreenchange[GSCE],"
+ "onmozfullscreenerror[GSCE],onpaste[GSCE],onpause[GSCE],onplay[GSCE],onplaying[GSCE],"
+ "onpointercancel[GSCE],onpointerdown[GSCE],onpointerenter[GSCE],onpointerleave[GSCE],"
+ "onpointermove[GSCE],onpointerout[GSCE],onpointerover[GSCE],onpointerup[GSCE],onprogress[GSCE],"
+ "onratechange[GSCE],onreset[GSCE],onresize[GSCE],onscroll[GSCE],onseeked[GSCE],onseeking[GSCE],"
+ "onselect[GSCE],onselectionchange[GSCE],onselectstart[GSCE],onstalled[GSCE],onsubmit[GSCE],"
+ "onsuspend[GSCE],ontimeupdate[GSCE],ontoggle[GSCE],ontransitioncancel[GSCE],ontransitionend[GSCE],"
+ "ontransitionrun[GSCE],ontransitionstart[GSCE],onvolumechange[GSCE],onwaiting[GSCE],outerText[GSCE],"
+ "spellcheck[GSCE],style[GSCE],tabIndex[GSCE],title[GSCE]")
public void bgsound() throws Exception {
test("bgsound");
}
Expand Down

0 comments on commit 737dbdb

Please sign in to comment.