From: <asa...@us...> - 2017-05-13 15:29:46
|
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"); } |