@@ -109,7 +109,7 @@ public Element() {
109109 * JavaScript constructor.
110110 */
111111 @ Override
112- @ JsxConstructor ({ CHROME , EDGE , FF , FF_ESR })
112+ @ JsxConstructor
113113 public void jsConstructor () {
114114 super .jsConstructor ();
115115 }
@@ -314,7 +314,7 @@ public boolean hasAttribute(final String name) {
314314 * {@inheritDoc}
315315 */
316316 @ Override
317- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
317+ @ JsxFunction
318318 public boolean hasAttributes () {
319319 return super .hasAttributes ();
320320 }
@@ -421,7 +421,7 @@ public Element getParentElement() {
421421 * {@inheritDoc}
422422 */
423423 @ Override
424- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
424+ @ JsxGetter
425425 public HTMLCollection getChildren () {
426426 return super .getChildren ();
427427 }
@@ -430,7 +430,7 @@ public HTMLCollection getChildren() {
430430 * Gets the token list of class attribute.
431431 * @return the token list of class attribute
432432 */
433- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
433+ @ JsxGetter
434434 public DOMTokenList getClassList () {
435435 return new DOMTokenList (this , "class" );
436436 }
@@ -617,7 +617,7 @@ public HtmlUnitScriptable getAttributeNodeNS(final String namespaceURI, final St
617617 * @param className the name to search for
618618 * @return all the descendant elements with the specified class name
619619 */
620- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
620+ @ JsxFunction
621621 public HTMLCollection getElementsByClassName (final String className ) {
622622 final DomElement elt = getDomNodeOrDie ();
623623 final String [] classNames = CLASS_NAMES_SPLIT_PATTERN .split (className , 0 );
@@ -695,7 +695,7 @@ protected final boolean isDisplayNone() {
695695 *
696696 * @see <a href="http://msdn.microsoft.com/en-us/library/ie/ms536451.aspx">MSDN</a>
697697 */
698- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
698+ @ JsxFunction
699699 public Object insertAdjacentElement (final String where , final Object insertedElement ) {
700700 if (insertedElement instanceof Node ) {
701701 final DomNode childNode = ((Node ) insertedElement ).getDomNodeOrDie ();
@@ -722,7 +722,7 @@ public Object insertAdjacentElement(final String where, final Object insertedEle
722722 *
723723 * @see <a href="http://msdn.microsoft.com/en-us/library/ie/ms536453.aspx">MSDN</a>
724724 */
725- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
725+ @ JsxFunction
726726 public void insertAdjacentText (final String where , final String text ) {
727727 final Object [] values = getInsertAdjacentLocation (where );
728728 final DomNode node = (DomNode ) values [0 ];
@@ -810,7 +810,7 @@ else if (POSITION_AFTER_END.equalsIgnoreCase(where)) {
810810 * >Mozilla Developer Network</a>
811811 * @see <a href="http://msdn.microsoft.com/en-us/library/ie/ms536452.aspx">MSDN</a>
812812 */
813- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
813+ @ JsxFunction
814814 public void insertAdjacentHTML (final String position , final String text ) {
815815 final Object [] values = getInsertAdjacentLocation (position );
816816 final DomNode domNode = (DomNode ) values [0 ];
@@ -851,7 +851,7 @@ public String innerHTML() {
851851 * Gets the {@code innerHTML} attribute.
852852 * @return the contents of this node as HTML
853853 */
854- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
854+ @ JsxGetter
855855 public String getInnerHTML () {
856856 try {
857857 DomNode domNode = getDomNodeOrDie ();
@@ -869,7 +869,7 @@ public String getInnerHTML() {
869869 * Replaces all child elements of this element with the supplied value.
870870 * @param value the new value for the contents of this element
871871 */
872- @ JsxSetter ({ CHROME , EDGE , FF , FF_ESR })
872+ @ JsxSetter
873873 public void setInnerHTML (final Object value ) {
874874 final DomElement domNode ;
875875 try {
@@ -917,7 +917,7 @@ protected String getInnerHTML(final DomNode domNode) {
917917 * @see <a href="http://msdn.microsoft.com/en-us/library/ms534310.aspx">MSDN documentation</a>
918918 * @return the contents of this node as HTML
919919 */
920- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
920+ @ JsxGetter
921921 public String getOuterHTML () {
922922 final StringBuilder buf = new StringBuilder ();
923923 // we can't rely on DomNode.asXml because it adds indentation and new lines
@@ -929,7 +929,7 @@ public String getOuterHTML() {
929929 * Replaces this element (including all child elements) with the supplied value.
930930 * @param value the new value for replacing this element
931931 */
932- @ JsxSetter ({ CHROME , EDGE , FF , FF_ESR })
932+ @ JsxSetter
933933 public void setOuterHTML (final Object value ) {
934934 final DomNode domNode = getDomNodeOrDie ();
935935 final DomNode parent = domNode .getParentNode ();
@@ -1068,7 +1068,7 @@ protected boolean isEndTagForbidden() {
10681068 * Returns the element ID.
10691069 * @return the ID of this element
10701070 */
1071- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
1071+ @ JsxGetter
10721072 public String getId () {
10731073 return getDomNodeOrDie ().getId ();
10741074 }
@@ -1077,7 +1077,7 @@ public String getId() {
10771077 * Sets the id value for this element.
10781078 * @param newId the newId value for this element
10791079 */
1080- @ JsxSetter ({ CHROME , EDGE , FF , FF_ESR })
1080+ @ JsxSetter
10811081 public void setId (final String newId ) {
10821082 getDomNodeOrDie ().setId (newId );
10831083 }
@@ -1200,7 +1200,7 @@ protected void setStyle(final String style) {
12001200 * anything. The requirement
12011201 * is just to prevent scripts that call that method from failing
12021202 */
1203- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1203+ @ JsxFunction
12041204 public void scrollIntoView () {
12051205 /* do nothing at the moment */
12061206 }
@@ -1218,7 +1218,7 @@ public void scrollIntoViewIfNeeded() {
12181218 * {@inheritDoc}
12191219 */
12201220 @ Override
1221- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
1221+ @ JsxGetter
12221222 public Object getPrefix () {
12231223 return super .getPrefix ();
12241224 }
@@ -1227,7 +1227,7 @@ public Object getPrefix() {
12271227 * {@inheritDoc}
12281228 */
12291229 @ Override
1230- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
1230+ @ JsxGetter
12311231 public Object getLocalName () {
12321232 return super .getLocalName ();
12331233 }
@@ -1236,7 +1236,7 @@ public Object getLocalName() {
12361236 * {@inheritDoc}
12371237 */
12381238 @ Override
1239- @ JsxGetter ({ CHROME , EDGE , FF , FF_ESR })
1239+ @ JsxGetter
12401240 public Object getNamespaceURI () {
12411241 return super .getNamespaceURI ();
12421242 }
@@ -1855,7 +1855,7 @@ public void setOnpointerup(final Object onpointerup) {
18551855 * {@inheritDoc}
18561856 */
18571857 @ Override
1858- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1858+ @ JsxFunction
18591859 public void remove () {
18601860 super .remove ();
18611861 }
@@ -1886,7 +1886,7 @@ public void releaseCapture() {
18861886 * @param args the arguments
18871887 * @param function the function
18881888 */
1889- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1889+ @ JsxFunction
18901890 public static void before (final Context context , final Scriptable scope ,
18911891 final Scriptable thisObj , final Object [] args , final Function function ) {
18921892 Node .before (context , thisObj , args , function );
@@ -1901,7 +1901,7 @@ public static void before(final Context context, final Scriptable scope,
19011901 * @param args the arguments
19021902 * @param function the function
19031903 */
1904- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1904+ @ JsxFunction
19051905 public static void after (final Context context , final Scriptable scope ,
19061906 final Scriptable thisObj , final Object [] args , final Function function ) {
19071907 Node .after (context , thisObj , args , function );
@@ -1915,7 +1915,7 @@ public static void after(final Context context, final Scriptable scope,
19151915 * @param args the arguments
19161916 * @param function the function
19171917 */
1918- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1918+ @ JsxFunction
19191919 public static void replaceWith (final Context context , final Scriptable scope ,
19201920 final Scriptable thisObj , final Object [] args , final Function function ) {
19211921 Node .replaceWith (context , thisObj , args , function );
@@ -1930,7 +1930,7 @@ public static void replaceWith(final Context context, final Scriptable scope,
19301930 * @param function the function
19311931 * @return the value
19321932 */
1933- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1933+ @ JsxFunction
19341934 public static boolean matches (final Context context , final Scriptable scope ,
19351935 final Scriptable thisObj , final Object [] args , final Function function ) {
19361936 if (!(thisObj instanceof Element )) {
@@ -1973,7 +1973,7 @@ public static boolean mozMatchesSelector(final Context context, final Scriptable
19731973 * @param function the function
19741974 * @return the value
19751975 */
1976- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1976+ @ JsxFunction
19771977 public static boolean webkitMatchesSelector (final Context context , final Scriptable scope ,
19781978 final Scriptable thisObj , final Object [] args , final Function function ) {
19791979 return matches (context , scope , thisObj , args , function );
@@ -1994,7 +1994,7 @@ public static boolean msMatchesSelector(final Context context, final Scriptable
19941994 return matches (context , scope , thisObj , args , function );
19951995 }
19961996
1997- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
1997+ @ JsxFunction
19981998 public static Element closest (final Context context , final Scriptable scope ,
19991999 final Scriptable thisObj , final Object [] args , final Function function ) {
20002000 if (!(thisObj instanceof Element )) {
@@ -2035,7 +2035,7 @@ public static Element closest(final Context context, final Scriptable scope,
20352035 * @see <a href=
20362036 * "https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute">Element.toggleAttribute()</a>
20372037 */
2038- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
2038+ @ JsxFunction
20392039 public boolean toggleAttribute (final String name , final Object force ) {
20402040 if (JavaScriptEngine .isUndefined (force )) {
20412041 if (hasAttribute (name )) {
@@ -2062,7 +2062,7 @@ public boolean toggleAttribute(final String name, final Object force) {
20622062 * @param args the arguments
20632063 * @param function the function
20642064 */
2065- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
2065+ @ JsxFunction
20662066 public static void append (final Context context , final Scriptable scope ,
20672067 final Scriptable thisObj , final Object [] args , final Function function ) {
20682068 if (!(thisObj instanceof Element )) {
@@ -2081,7 +2081,7 @@ public static void append(final Context context, final Scriptable scope,
20812081 * @param args the arguments
20822082 * @param function the function
20832083 */
2084- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
2084+ @ JsxFunction
20852085 public static void prepend (final Context context , final Scriptable scope ,
20862086 final Scriptable thisObj , final Object [] args , final Function function ) {
20872087 if (!(thisObj instanceof Element )) {
@@ -2100,7 +2100,7 @@ public static void prepend(final Context context, final Scriptable scope,
21002100 * @param args the arguments
21012101 * @param function the function
21022102 */
2103- @ JsxFunction ({ CHROME , EDGE , FF , FF_ESR })
2103+ @ JsxFunction
21042104 public static void replaceChildren (final Context context , final Scriptable scope ,
21052105 final Scriptable thisObj , final Object [] args , final Function function ) {
21062106 if (!(thisObj instanceof Element )) {
0 commit comments