Skip to content

Commit 285adfb

Browse files
committed
time to remove IE (issue #735)
1 parent bab85b3 commit 285adfb

22 files changed

Lines changed: 0 additions & 290 deletions

src/main/java/org/htmlunit/javascript/host/External.java

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

2221
import org.htmlunit.corejs.javascript.Undefined;
2322
import org.htmlunit.javascript.HtmlUnitScriptable;
@@ -49,14 +48,6 @@ public External() {
4948
public void jsConstructor() {
5049
}
5150

52-
/**
53-
* Empty implementation.
54-
*/
55-
@JsxFunction(value = IE, functionName = "AutoCompleteSaveForm")
56-
public void autoCompleteSaveForm() {
57-
// dummy
58-
}
59-
6051
/**
6152
* Empty implementation.
6253
*/

src/main/java/org/htmlunit/javascript/host/canvas/WebGL2RenderingContext.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
package org.htmlunit.javascript.host.canvas;
1616

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
1917
import org.htmlunit.javascript.HtmlUnitScriptable;
2018
import org.htmlunit.javascript.JavaScriptEngine;
2119
import org.htmlunit.javascript.configuration.JsxClass;
@@ -1643,10 +1641,6 @@ public class WebGL2RenderingContext extends HtmlUnitScriptable {
16431641
@JsxConstant
16441642
public static final long STENCIL_FUNC = 2_962L;
16451643

1646-
/** The constant {@code STENCIL_INDEX}. */
1647-
@JsxConstant(IE)
1648-
public static final long STENCIL_INDEX = 6_401L;
1649-
16501644
/** The constant {@code STENCIL_INDEX8}. */
16511645
@JsxConstant
16521646
public static final long STENCIL_INDEX8 = 36_168L;

src/main/java/org/htmlunit/javascript/host/canvas/WebGLRenderingContext.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
package org.htmlunit.javascript.host.canvas;
1616

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
1917
import org.htmlunit.javascript.HtmlUnitScriptable;
2018
import org.htmlunit.javascript.JavaScriptEngine;
2119
import org.htmlunit.javascript.configuration.JsxClass;
@@ -336,9 +334,6 @@ public class WebGLRenderingContext extends HtmlUnitScriptable {
336334
/** The constant {@code TEXTURE}. */
337335
@JsxConstant
338336
public static final int TEXTURE = 0x1702;
339-
/** The constant {@code STENCIL_INDEX}. */
340-
@JsxConstant(IE)
341-
public static final int STENCIL_INDEX = 0x1901;
342337
/** The constant {@code DEPTH_COMPONENT}. */
343338
@JsxConstant
344339
public static final int DEPTH_COMPONENT = 0x1902;

src/main/java/org/htmlunit/javascript/host/css/CSSConditionRule.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
package org.htmlunit.javascript.host.css;
1616

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
1917
import org.htmlunit.cssparser.dom.CSSMediaRuleImpl;
2018
import org.htmlunit.javascript.configuration.JsxClass;
2119
import org.htmlunit.javascript.configuration.JsxConstructor;
@@ -30,7 +28,6 @@
3028
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule">MDN doc</a>
3129
*/
3230
@JsxClass
33-
@JsxClass(isJSObject = false, value = IE)
3431
public class CSSConditionRule extends CSSGroupingRule {
3532

3633
/**

src/main/java/org/htmlunit/javascript/host/css/CSSGroupingRule.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
package org.htmlunit.javascript.host.css;
1616

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
1917
import java.util.ArrayList;
2018
import java.util.List;
2119

@@ -39,7 +37,6 @@
3937
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule">MDN doc</a>
4038
*/
4139
@JsxClass
42-
@JsxClass(isJSObject = false, value = IE)
4340
public class CSSGroupingRule extends CSSRule {
4441

4542
/** The collection of rules defined in this rule. */

src/main/java/org/htmlunit/javascript/host/css/CSSRule.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
package org.htmlunit.javascript.host.css;
1616

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
1917
import org.apache.commons.logging.Log;
2018
import org.apache.commons.logging.LogFactory;
2119
import org.htmlunit.cssparser.dom.AbstractCSSRuleImpl;
@@ -50,7 +48,6 @@ public class CSSRule extends HtmlUnitScriptable {
5048
/**
5149
* The rule is a {@code CSSUnknownRule}.
5250
*/
53-
@JsxConstant(IE)
5451
public static final int UNKNOWN_RULE = org.w3c.dom.css.CSSRule.UNKNOWN_RULE;
5552

5653
/**
@@ -128,7 +125,6 @@ public class CSSRule extends HtmlUnitScriptable {
128125
/**
129126
* The rule is a {@code CSSViewportRule}.
130127
*/
131-
@JsxConstant(IE)
132128
public static final int VIEWPORT_RULE = 15;
133129

134130
private final CSSStyleSheet stylesheet_;

src/main/java/org/htmlunit/javascript/host/css/CSSStyleRule.java

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

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

2019
import java.util.Locale;
2120
import java.util.regex.Matcher;
@@ -110,13 +109,4 @@ public CSSStyleDeclaration getStyle() {
110109
= new WrappedCssStyleDeclaration(((CSSStyleRuleImpl) getRule()).getStyle(), getBrowserVersion());
111110
return new CSSStyleDeclaration(getParentStyleSheet(), styleDeclaration);
112111
}
113-
114-
/**
115-
* Returns the readonly property.
116-
* @return the readonly value.
117-
*/
118-
@JsxGetter(IE)
119-
public boolean isReadOnly() {
120-
return false;
121-
}
122112
}

src/main/java/org/htmlunit/javascript/host/css/CSSStyleSheet.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
package org.htmlunit.javascript.host.css;
1616

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
1917
import java.io.IOException;
2018
import java.io.StringReader;
2119
import java.util.ArrayList;
@@ -147,25 +145,6 @@ public CssStyleSheet getCssStyleSheet() {
147145
return styleSheet_;
148146
}
149147

150-
/**
151-
* Returns the owner node.
152-
* @return the owner node
153-
*/
154-
@JsxGetter(IE)
155-
@Override
156-
public HTMLElement getOwnerNode() {
157-
return super.getOwnerNode();
158-
}
159-
160-
/**
161-
* Returns the owner element, same as {@link #getOwnerNode()}.
162-
* @return the owner element
163-
*/
164-
@JsxGetter(IE)
165-
public HTMLElement getOwningElement() {
166-
return getOwnerNode();
167-
}
168-
169148
/**
170149
* Retrieves the collection of rules defined in this style sheet.
171150
* @return the collection of rules defined in this style sheet
@@ -185,15 +164,6 @@ public CSSRuleList getCssRules() {
185164
return cssRules_;
186165
}
187166

188-
/**
189-
* {@inheritDoc}
190-
*/
191-
@JsxGetter(IE)
192-
@Override
193-
public String getHref() {
194-
return super.getHref();
195-
}
196-
197167
/**
198168
* Inserts a new rule.
199169
* @param rule the CSS rule

src/main/java/org/htmlunit/javascript/host/dom/Attr.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
*/
1515
package org.htmlunit.javascript.host.dom;
1616

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
19-
import org.htmlunit.corejs.javascript.Scriptable;
20-
import org.htmlunit.corejs.javascript.ScriptableObject;
2117
import org.htmlunit.html.DomAttr;
2218
import org.htmlunit.html.DomElement;
2319
import org.htmlunit.javascript.HtmlUnitScriptable;
@@ -68,19 +64,6 @@ public void detachFromParent() {
6864
domNode.remove();
6965
}
7066

71-
/**
72-
* Returns {@code true} if the attribute is a custom property.
73-
* @return {@code true} if the attribute is a custom property
74-
*/
75-
@JsxGetter(IE)
76-
public boolean isExpando() {
77-
final Object owner = getOwnerElement();
78-
if (null == owner) {
79-
return false;
80-
}
81-
return !ScriptableObject.hasProperty((Scriptable) owner, getName());
82-
}
83-
8467
/**
8568
* Returns the name of the attribute.
8669
* @return the name of the attribute

src/main/java/org/htmlunit/javascript/host/file/File.java

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

1717
import static org.htmlunit.javascript.configuration.SupportedBrowser.CHROME;
1818
import static org.htmlunit.javascript.configuration.SupportedBrowser.EDGE;
19-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
2019

2120
import java.io.IOException;
2221
import java.nio.charset.StandardCharsets;
@@ -174,13 +173,6 @@ public String getWebkitRelativePath() {
174173
public void slice() {
175174
}
176175

177-
/**
178-
* Closes the file.
179-
*/
180-
@JsxFunction(IE)
181-
public void msClose() {
182-
}
183-
184176
/**
185177
* Returns the underlying file.
186178
* @return the underlying file

0 commit comments

Comments
 (0)