Quantcast

[HtmlUnit] SVN: [14448] trunk/htmlunit/src

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14448] trunk/htmlunit/src

asashour-2
Revision: 14448
          http://sourceforge.net/p/htmlunit/code/14448
Author:   asashour
Date:     2017-05-13 15:29:44 +0000 (Sat, 13 May 2017)
Log Message:
-----------
Implement td/hd headers/scope

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableCellElement.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableCellElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableCellElement.java 2017-05-13 15:16:10 UTC (rev 14447)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableCellElement.java 2017-05-13 15:29:44 UTC (rev 14448)
@@ -394,4 +394,40 @@
     public void setBorderColorLight(final String borderColor) {
         // ignore
     }
+
+    /**
+     * Returns the {@code headers} attribute.
+     * @return the {@code headers} attribute
+     */
+    @JsxGetter
+    public String getHeaders() {
+        return getDomNodeOrDie().getAttribute("headers");
+    }
+
+    /**
+     * Sets the {@code headers} attribute.
+     * @param headers the new attribute
+     */
+    @JsxSetter
+    public void setHeaders(final String headers) {
+        getDomNodeOrDie().setAttribute("headers", headers);
+    }
+
+    /**
+     * Returns the {@code scope} attribute.
+     * @return the {@code scope} attribute
+     */
+    @JsxGetter
+    public String getScope() {
+        return getDomNodeOrDie().getAttribute("scope");
+    }
+
+    /**
+     * Sets the {@code scope} attribute.
+     * @param scope the new attribute
+     */
+    @JsxSetter
+    public void setScope(final String scope) {
+        getDomNodeOrDie().setAttribute("scope", scope);
+    }
 }

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2017-05-13 15:16:10 UTC (rev 14447)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2017-05-13 15:29:44 UTC (rev 14448)
@@ -2463,7 +2463,6 @@
             IE = "abbr,align,axis,background,bgColor,borderColor,borderColorDark,borderColorLight,cellIndex,ch,"
                 + "chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign,"
                 + "width")
-    @NotYetImplemented
     public void td() throws Exception {
         test("td");
     }
@@ -2479,7 +2478,6 @@
             IE = "abbr,align,axis,background,bgColor,borderColor,borderColorDark,borderColorLight,cellIndex,ch,"
                 + "chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign,"
                 + "width")
-    @NotYetImplemented
     public void th() throws Exception {
         test("th");
     }


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...