Skip to content

Commit b830be5

Browse files
committed
time to remove IE (issue #735)
1 parent e751fb0 commit b830be5

9 files changed

Lines changed: 2 additions & 436 deletions

File tree

src/main/java/org/htmlunit/javascript/configuration/JavaScriptConfiguration.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@
249249
import org.htmlunit.javascript.host.html.HTMLBGSoundElement;
250250
import org.htmlunit.javascript.host.html.HTMLBRElement;
251251
import org.htmlunit.javascript.host.html.HTMLBaseElement;
252-
import org.htmlunit.javascript.host.html.HTMLBlockElement;
253252
import org.htmlunit.javascript.host.html.HTMLBodyElement;
254253
import org.htmlunit.javascript.host.html.HTMLButtonElement;
255254
import org.htmlunit.javascript.host.html.HTMLCanvasElement;
@@ -297,7 +296,6 @@
297296
import org.htmlunit.javascript.host.html.HTMLOutputElement;
298297
import org.htmlunit.javascript.host.html.HTMLParagraphElement;
299298
import org.htmlunit.javascript.host.html.HTMLParamElement;
300-
import org.htmlunit.javascript.host.html.HTMLPhraseElement;
301299
import org.htmlunit.javascript.host.html.HTMLPictureElement;
302300
import org.htmlunit.javascript.host.html.HTMLPreElement;
303301
import org.htmlunit.javascript.host.html.HTMLProgressElement;
@@ -590,7 +588,7 @@ public final class JavaScriptConfiguration extends AbstractJavaScriptConfigurati
590588
Geolocation.class, GeolocationCoordinates.class, GeolocationPosition.class, GeolocationPositionError.class,
591589
HashChangeEvent.class, Headers.class, History.class,
592590
HTMLAllCollection.class, HTMLAnchorElement.class, HTMLAreaElement.class, HTMLAudioElement.class,
593-
HTMLBaseElement.class, HTMLBGSoundElement.class, HTMLBlockElement.class,
591+
HTMLBaseElement.class, HTMLBGSoundElement.class,
594592
HTMLBodyElement.class, HTMLBRElement.class, HTMLButtonElement.class,
595593
HTMLCanvasElement.class, HTMLCollection.class,
596594
HTMLDataElement.class, HTMLDataListElement.class,
@@ -607,7 +605,7 @@ public final class JavaScriptConfiguration extends AbstractJavaScriptConfigurati
607605
HTMLMeterElement.class, HTMLModElement.class,
608606
HTMLObjectElement.class, HTMLOListElement.class, HTMLOptGroupElement.class,
609607
HTMLOptionElement.class, HTMLOptionsCollection.class, HTMLOutputElement.class,
610-
HTMLParagraphElement.class, HTMLParamElement.class, HTMLPhraseElement.class, HTMLPictureElement.class,
608+
HTMLParagraphElement.class, HTMLParamElement.class, HTMLPictureElement.class,
611609
HTMLPreElement.class, HTMLProgressElement.class, HTMLQuoteElement.class, HTMLScriptElement.class,
612610
HTMLSelectElement.class, HTMLSlotElement.class, HTMLSourceElement.class,
613611
HTMLSpanElement.class,

src/main/java/org/htmlunit/javascript/host/html/HTMLAnchorElement.java

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import static org.htmlunit.BrowserVersionFeatures.JS_ANCHOR_PROTOCOL_COLON_UPPER_CASE_DRIVE_LETTERS;
2222
import static org.htmlunit.BrowserVersionFeatures.URL_IGNORE_SPECIAL;
2323
import static org.htmlunit.html.DomElement.ATTRIBUTE_NOT_DEFINED;
24-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
2524

2625
import java.net.MalformedURLException;
2726
import java.net.URL;
@@ -845,76 +844,4 @@ public DOMTokenList getRelList() {
845844
public void setRelList(final Object rel) {
846845
setRel(JavaScriptEngine.toString(rel));
847846
}
848-
849-
/**
850-
* Returns the {@code protocolLong} attribute.
851-
* @return the {@code protocolLong} attribute
852-
*/
853-
@JsxGetter(IE)
854-
public String getProtocolLong() {
855-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
856-
}
857-
858-
/**
859-
* Returns the {@code Methods} attribute.
860-
* @return the {@code Methods} attribute
861-
*/
862-
@JsxGetter(propertyName = "Methods", value = IE)
863-
public String getMethods_js() {
864-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
865-
}
866-
867-
/**
868-
* Sets the {@code Methods} attribute.
869-
* @param methods {@code Methods} attribute
870-
*/
871-
@JsxSetter(propertyName = "Methods", value = IE)
872-
public void setMethods_js(final String methods) {
873-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
874-
}
875-
876-
/**
877-
* Returns the {@code mimeType} attribute.
878-
* @return the {@code mimeType} attribute
879-
*/
880-
@JsxGetter(IE)
881-
public String getMimeType() {
882-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
883-
}
884-
885-
/**
886-
* Sets the {@code mimeType} attribute.
887-
* @param mimeType {@code mimeType} attribute
888-
*/
889-
@JsxSetter(IE)
890-
public void setMimeType(final String mimeType) {
891-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
892-
}
893-
894-
/**
895-
* Returns the {@code nameProp} attribute.
896-
* @return the {@code nameProp} attribute
897-
*/
898-
@JsxGetter(IE)
899-
public String getNameProp() {
900-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
901-
}
902-
903-
/**
904-
* Returns the {@code urn} attribute.
905-
* @return the {@code urn} attribute
906-
*/
907-
@JsxGetter(IE)
908-
public String getUrn() {
909-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
910-
}
911-
912-
/**
913-
* Sets the {@code urn} attribute.
914-
* @param urn {@code urn} attribute
915-
*/
916-
@JsxSetter(IE)
917-
public void setUrn(final String urn) {
918-
throw JavaScriptEngine.throwAsScriptRuntimeEx(new UnsupportedOperationException());
919-
}
920847
}

src/main/java/org/htmlunit/javascript/host/html/HTMLBGSoundElement.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import static org.htmlunit.BrowserVersionFeatures.JS_BGSOUND_AS_UNKNOWN;
1818
import static org.htmlunit.javascript.configuration.SupportedBrowser.FF;
1919
import static org.htmlunit.javascript.configuration.SupportedBrowser.FF_ESR;
20-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
2120

2221
import org.htmlunit.html.HtmlBackgroundSound;
2322
import org.htmlunit.javascript.configuration.JsxClass;
@@ -29,7 +28,6 @@
2928
* @author Ahmed Ashour
3029
* @author Ronald Brill
3130
*/
32-
@JsxClass(domClass = HtmlBackgroundSound.class, value = IE)
3331
@JsxClass(isJSObject = false, domClass = HtmlBackgroundSound.class, value = {FF, FF_ESR})
3432
public class HTMLBGSoundElement extends HTMLElement {
3533

src/main/java/org/htmlunit/javascript/host/html/HTMLBlockElement.java

Lines changed: 0 additions & 121 deletions
This file was deleted.

src/main/java/org/htmlunit/javascript/host/html/HTMLCollection.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515
package org.htmlunit.javascript.host.html;
1616

1717
import static org.htmlunit.BrowserVersionFeatures.HTMLCOLLECTION_NAMED_ITEM_ID_FIRST;
18-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
1918

20-
import java.io.Serializable;
2119
import java.util.ArrayList;
2220
import java.util.Collections;
2321
import java.util.List;
24-
import java.util.function.Supplier;
2522

2623
import org.htmlunit.BrowserVersion;
2724
import org.htmlunit.corejs.javascript.Callable;
@@ -256,29 +253,4 @@ public Object namedItem(final String name) {
256253
}
257254
return null;
258255
}
259-
260-
/**
261-
* Returns all the elements in this element array that have the specified tag name.
262-
* This method returns an empty element array if there are no elements with the
263-
* specified tag name.
264-
* @param tagName the name of the tag of the elements to return
265-
* @return all the elements in this element array that have the specified tag name
266-
* @see <a href="http://msdn.microsoft.com/en-us/library/ms536776.aspx">MSDN doc</a>
267-
*/
268-
@JsxFunction(IE)
269-
public Object tags(final String tagName) {
270-
final HTMLCollection tags = new HTMLCollection(getDomNodeOrDie(), false);
271-
tags.setElementsSupplier(
272-
(Supplier<List<DomNode>> & Serializable)
273-
() -> {
274-
final List<DomNode> list = new ArrayList<>();
275-
for (final DomNode elem : this.getElements()) {
276-
if (tagName.equalsIgnoreCase(elem.getLocalName())) {
277-
list.add(elem);
278-
}
279-
}
280-
return list;
281-
});
282-
return tags;
283-
}
284256
}

src/main/java/org/htmlunit/javascript/host/html/HTMLDivElement.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import static org.htmlunit.javascript.configuration.SupportedBrowser.FF;
1818
import static org.htmlunit.javascript.configuration.SupportedBrowser.FF_ESR;
19-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
2019

2120
import org.htmlunit.html.HtmlDivision;
2221
import org.htmlunit.html.HtmlMarquee;
@@ -68,29 +67,4 @@ public String getAlign() {
6867
public void setAlign(final String align) {
6968
setAlign(align, false);
7069
}
71-
72-
/**
73-
* Returns the value of the {@code noWrap} attribute.
74-
* @return the value of the {@code noWrap} attribute
75-
* @see <a href="http://msdn.microsoft.com/en-us/library/ms534196.aspx">MSDN Documentation</a>
76-
*/
77-
@JsxGetter(IE)
78-
public boolean isNoWrap() {
79-
return getDomNodeOrDie().hasAttribute("noWrap");
80-
}
81-
82-
/**
83-
* Sets the value of the {@code noWrap} attribute.
84-
* @param noWrap the value of the {@code noWrap} attribute
85-
* @see <a href="http://msdn.microsoft.com/en-us/library/ms534196.aspx">MSDN Documentation</a>
86-
*/
87-
@JsxSetter(IE)
88-
public void setNoWrap(final boolean noWrap) {
89-
if (noWrap) {
90-
getDomNodeOrDie().setAttribute("noWrap", "");
91-
}
92-
else {
93-
getDomNodeOrDie().removeAttribute("noWrap");
94-
}
95-
}
9670
}

src/main/java/org/htmlunit/javascript/host/html/HTMLMenuElement.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@
1515
package org.htmlunit.javascript.host.html;
1616

1717
import static org.htmlunit.BrowserVersionFeatures.JS_MENU_TYPE_PASS;
18-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
1918

2019
import org.htmlunit.html.DomElement;
2120
import org.htmlunit.html.HtmlMenu;
2221
import org.htmlunit.javascript.configuration.JsxClass;
2322
import org.htmlunit.javascript.configuration.JsxConstructor;
24-
import org.htmlunit.javascript.configuration.JsxGetter;
25-
import org.htmlunit.javascript.configuration.JsxSetter;
2623

2724
/**
2825
* The JavaScript object {@code HTMLMenuElement}.
@@ -54,7 +51,6 @@ public void jsConstructor() {
5451
* @return the value of the {@code type} property
5552
*/
5653
@Override
57-
@JsxGetter(IE)
5854
public String getType() {
5955
final String type = getDomNodeOrDie().getAttributeDirect("type");
6056
if (getBrowserVersion().hasFeature(JS_MENU_TYPE_PASS)) {
@@ -76,7 +72,6 @@ public String getType() {
7672
* @param type the value of the {@code type} property
7773
*/
7874
@Override
79-
@JsxSetter(IE)
8075
public void setType(final String type) {
8176
if (getBrowserVersion().hasFeature(JS_MENU_TYPE_PASS)) {
8277
getDomNodeOrDie().setAttribute(DomElement.TYPE_ATTRIBUTE, type);

0 commit comments

Comments
 (0)