From: <asa...@us...> - 2017-05-05 17:46:50
|
Revision: 14377 http://sourceforge.net/p/htmlunit/code/14377 Author: asashour Date: 2017-05-05 17:46:48 +0000 (Fri, 05 May 2017) Log Message: ----------- Fixing build Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ElementTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node.java 2017-05-05 17:40:11 UTC (rev 14376) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node.java 2017-05-05 17:46:48 UTC (rev 14377) @@ -20,7 +20,7 @@ import static com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.CHROME; import static com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.EDGE; import static com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.FF; -import static com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.FF52; +import static com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.*; import static com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.IE; import java.util.ArrayList; @@ -717,7 +717,7 @@ * Returns the namespace prefix. * @return the namespace prefix */ - @JsxGetter(IE) + @JsxGetter({FF45, IE}) public Object getPrefix() { return getDomNodeOrDie().getPrefix(); } @@ -726,7 +726,7 @@ * Returns the local name of this attribute. * @return the local name of this attribute */ - @JsxGetter(IE) + @JsxGetter({FF45, IE}) public Object getLocalName() { return getDomNodeOrDie().getLocalName(); } @@ -735,7 +735,7 @@ * Returns the URI that identifies an XML namespace. * @return the URI that identifies an XML namespace */ - @JsxGetter(IE) + @JsxGetter({FF45, IE}) public Object getNamespaceURI() { return getDomNodeOrDie().getNamespaceURI(); } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ElementTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ElementTest.java 2017-05-05 17:40:11 UTC (rev 14376) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ElementTest.java 2017-05-05 17:46:48 UTC (rev 14377) @@ -436,11 +436,9 @@ = "<html>\n" + "<script>\n" + " function test() {\n" - + " try {\n" - + " debug(document.createElement('dIv'));\n" - + " debug(document.createElement('app:dIv'));\n" - + " debug(document.createElementNS('http://www.appcelerator.org', 'app:dIv'));\n" - + " } catch (e) {alert('createElementNS() is not defined')}\n" + + " debug(document.createElement('dIv'));\n" + + " debug(document.createElement('app:dIv'));\n" + + " debug(document.createElementNS('http://www.appcelerator.org', 'app:dIv'));\n" + " debug(document.getElementById('dIv1'));\n" + " debug(document.getElementById('dIv2'));\n" + " }\n" @@ -542,12 +540,10 @@ = "<html xmlns='http://www.w3.org/1999/xhtml' xmlns:app='http://www.appcelerator.org'>\n" + "<script>\n" + " function test() {\n" - + " try {\n" - + " debug(document.createElement('dIv'));\n" - + " debug(document.createElement('app:dIv'));\n" - + " debug(document.createElement('another:dIv'));\n" - + " debug(document.createElementNS('http://www.appcelerator.org', 'app:dIv'));\n" - + " } catch (e) {alert('createElementNS() is not defined')}\n" + + " debug(document.createElement('dIv'));\n" + + " debug(document.createElement('app:dIv'));\n" + + " debug(document.createElement('another:dIv'));\n" + + " debug(document.createElementNS('http://www.appcelerator.org', 'app:dIv'));\n" + " debug(document.getElementById('dIv1'));\n" + " debug(document.getElementById('dIv2'));\n" + " debug(document.getElementById('dIv3'));\n" |