3939import org .htmlunit .corejs .javascript .NativeObject ;
4040import org .htmlunit .corejs .javascript .Scriptable ;
4141import org .htmlunit .corejs .javascript .ScriptableObject ;
42+ import org .htmlunit .corejs .javascript .VarScope ;
4243import org .htmlunit .corejs .javascript .WithScope ;
4344import org .htmlunit .css .ComputedCssStyleDeclaration ;
4445import org .htmlunit .css .ElementCssStyleDeclaration ;
@@ -858,7 +859,7 @@ public void insertAdjacentHTML(final String position, final String text) {
858859 * @param function the function
859860 */
860861 @ JsxFunction ({CHROME , EDGE , FF })
861- public static void moveBefore (final Context context , final Scriptable scope ,
862+ public static void moveBefore (final Context context , final VarScope scope ,
862863 final Scriptable thisObj , final Object [] args , final Function function ) {
863864 Node .moveBefore (context , scope , thisObj , args , function );
864865 }
@@ -1556,7 +1557,7 @@ public void releaseCapture() {
15561557 * @param function the function
15571558 */
15581559 @ JsxFunction
1559- public static void before (final Context context , final Scriptable scope ,
1560+ public static void before (final Context context , final VarScope scope ,
15601561 final Scriptable thisObj , final Object [] args , final Function function ) {
15611562 Node .before (context , thisObj , args , function );
15621563 }
@@ -1571,7 +1572,7 @@ public static void before(final Context context, final Scriptable scope,
15711572 * @param function the function
15721573 */
15731574 @ JsxFunction
1574- public static void after (final Context context , final Scriptable scope ,
1575+ public static void after (final Context context , final VarScope scope ,
15751576 final Scriptable thisObj , final Object [] args , final Function function ) {
15761577 Node .after (context , thisObj , args , function );
15771578 }
@@ -1585,7 +1586,7 @@ public static void after(final Context context, final Scriptable scope,
15851586 * @param function the function
15861587 */
15871588 @ JsxFunction
1588- public static void replaceWith (final Context context , final Scriptable scope ,
1589+ public static void replaceWith (final Context context , final VarScope scope ,
15891590 final Scriptable thisObj , final Object [] args , final Function function ) {
15901591 Node .replaceWith (context , thisObj , args , function );
15911592 }
@@ -1600,7 +1601,7 @@ public static void replaceWith(final Context context, final Scriptable scope,
16001601 * @return the value
16011602 */
16021603 @ JsxFunction
1603- public static boolean matches (final Context context , final Scriptable scope ,
1604+ public static boolean matches (final Context context , final VarScope scope ,
16041605 final Scriptable thisObj , final Object [] args , final Function function ) {
16051606 if (!(thisObj instanceof Element )) {
16061607 throw JavaScriptEngine .typeError ("Illegal invocation" );
@@ -1630,7 +1631,7 @@ public static boolean matches(final Context context, final Scriptable scope,
16301631 * @return the value
16311632 */
16321633 @ JsxFunction ({FF , FF_ESR })
1633- public static boolean mozMatchesSelector (final Context context , final Scriptable scope ,
1634+ public static boolean mozMatchesSelector (final Context context , final VarScope scope ,
16341635 final Scriptable thisObj , final Object [] args , final Function function ) {
16351636 return matches (context , scope , thisObj , args , function );
16361637 }
@@ -1645,7 +1646,7 @@ public static boolean mozMatchesSelector(final Context context, final Scriptable
16451646 * @return the value
16461647 */
16471648 @ JsxFunction
1648- public static boolean webkitMatchesSelector (final Context context , final Scriptable scope ,
1649+ public static boolean webkitMatchesSelector (final Context context , final VarScope scope ,
16491650 final Scriptable thisObj , final Object [] args , final Function function ) {
16501651 return matches (context , scope , thisObj , args , function );
16511652 }
@@ -1661,7 +1662,7 @@ public static boolean webkitMatchesSelector(final Context context, final Scripta
16611662 * @return the found element or null
16621663 */
16631664 @ JsxFunction
1664- public static Element closest (final Context context , final Scriptable scope ,
1665+ public static Element closest (final Context context , final VarScope scope ,
16651666 final Scriptable thisObj , final Object [] args , final Function function ) {
16661667 if (!(thisObj instanceof Element )) {
16671668 throw JavaScriptEngine .typeError ("Illegal invocation" );
@@ -1730,7 +1731,7 @@ public boolean toggleAttribute(final String name, final Object force) {
17301731 * @param function the function
17311732 */
17321733 @ JsxFunction
1733- public static void append (final Context context , final Scriptable scope ,
1734+ public static void append (final Context context , final VarScope scope ,
17341735 final Scriptable thisObj , final Object [] args , final Function function ) {
17351736 if (!(thisObj instanceof Element )) {
17361737 throw JavaScriptEngine .typeError ("Illegal invocation" );
@@ -1750,7 +1751,7 @@ public static void append(final Context context, final Scriptable scope,
17501751 * @param function the function
17511752 */
17521753 @ JsxFunction
1753- public static void prepend (final Context context , final Scriptable scope ,
1754+ public static void prepend (final Context context , final VarScope scope ,
17541755 final Scriptable thisObj , final Object [] args , final Function function ) {
17551756 if (!(thisObj instanceof Element )) {
17561757 throw JavaScriptEngine .typeError ("Illegal invocation" );
@@ -1770,7 +1771,7 @@ public static void prepend(final Context context, final Scriptable scope,
17701771 * @param function the function
17711772 */
17721773 @ JsxFunction
1773- public static void replaceChildren (final Context context , final Scriptable scope ,
1774+ public static void replaceChildren (final Context context , final VarScope scope ,
17741775 final Scriptable thisObj , final Object [] args , final Function function ) {
17751776 if (!(thisObj instanceof Element )) {
17761777 throw JavaScriptEngine .typeError ("Illegal invocation" );
0 commit comments