Skip to content

Commit b1270e7

Browse files
committed
time to remove IE (issue #735)
1 parent b44dd85 commit b1270e7

6 files changed

Lines changed: 20 additions & 737 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,7 +2757,7 @@ public void setOndurationchange(final Object ondurationchange) {
27572757
*/
27582758
@JsxGetter
27592759
public Function getOnplaying() {
2760-
return getEventHandler(Event.TYPE_PLAYNG);
2760+
return getEventHandler(Event.TYPE_PLAYING);
27612761
}
27622762

27632763
/**
@@ -2766,7 +2766,7 @@ public Function getOnplaying() {
27662766
*/
27672767
@JsxSetter
27682768
public void setOnplaying(final Object onplaying) {
2769-
setHandlerForJavaScript(Event.TYPE_PLAYNG, onplaying);
2769+
setHandlerForJavaScript(Event.TYPE_PLAYING, onplaying);
27702770
}
27712771

27722772
/**

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

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

17-
import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
18-
1917
import org.htmlunit.html.DomComment;
2018
import org.htmlunit.javascript.configuration.JsxClass;
2119
import org.htmlunit.javascript.configuration.JsxConstructor;
22-
import org.htmlunit.javascript.configuration.JsxFunction;
23-
import org.htmlunit.javascript.configuration.JsxGetter;
2420

2521
/**
2622
* A JavaScript object for {@code Comment}.
@@ -49,36 +45,4 @@ public Comment() {
4945
public void jsConstructor() {
5046
super.jsConstructor();
5147
}
52-
53-
/**
54-
* Returns the text of this element.
55-
* @return the text
56-
*/
57-
@JsxGetter(IE)
58-
public String getText() {
59-
return "<!--" + getData() + "-->";
60-
}
61-
62-
/**
63-
* Gets the attribute node for the specified attribute.
64-
* @param attributeName the name of the attribute to retrieve
65-
* @return the attribute node for the specified attribute
66-
*/
67-
@JsxFunction(IE)
68-
public Object getAttributeNode(final String attributeName) {
69-
return null;
70-
}
71-
72-
/**
73-
* Returns the value of the specified attribute.
74-
* @param attributeName attribute name
75-
* @param flags IE-specific flags (see the MSDN documentation for more info)
76-
* @return the value of the specified attribute, {@code null} if the attribute is not defined
77-
* @see <a href="http://msdn.microsoft.com/en-us/library/ms536429.aspx">MSDN Documentation</a>
78-
* @see <a href="http://reference.sitepoint.com/javascript/Element/getAttribute">IE Bug Documentation</a>
79-
*/
80-
@JsxFunction(IE)
81-
public Object getAttribute(final String attributeName, final Integer flags) {
82-
return null;
83-
}
8448
}

0 commit comments

Comments
 (0)