[HtmlUnit] SVN: [15444] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript/host
rbri--- via HtmlUnit-develop <[email protected]>
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 15444
http://sourceforge.net/p/htmlunit/code/15444
Author: rbri
Date: 2018-07-09 10:11:23 +0000 (Mon, 09 Jul 2018)
Log Message:
-----------
ff60 support (wip)
Modified Paths:
--------------
trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Element.java
trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement.java
Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Element.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Element.java 2018-07-09 10:03:39 UTC (rev 15443)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Element.java 2018-07-09 10:11:23 UTC (rev 15444)
@@ -1957,6 +1957,25 @@
}
/**
+ * Mock for the moment.
+ * @param retargetToElement if true, all events are targeted directly to this element;
+ * if false, events can also fire at descendants of this element
+ */
+ @JsxFunction(FF)
+ public void setCapture(final boolean retargetToElement) {
+ // empty
+ }
+
+ /**
+ * Mock for the moment.
+ * @return true for success
+ */
+ @JsxFunction(FF)
+ public boolean releaseCapture() {
+ return true;
+ }
+
+ /**
* Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent,
* just before this ChildNode.
* @param context the context
Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement.java 2018-07-09 10:03:39 UTC (rev 15443)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement.java 2018-07-09 10:11:23 UTC (rev 15444)
@@ -2043,9 +2043,9 @@
* @param retargetToElement if true, all events are targeted directly to this element;
* if false, events can also fire at descendants of this element
*/
- @JsxFunction({FF, IE})
+ @JsxFunction(IE)
public void setCapture(final boolean retargetToElement) {
- // empty
+ super.setCapture(retargetToElement);
}
/**
@@ -2052,9 +2052,9 @@
* Mock for the moment.
* @return true for success
*/
- @JsxFunction({FF, IE})
+ @JsxFunction(IE)
public boolean releaseCapture() {
- return true;
+ return super.releaseCapture();
}
/**
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot