You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Boris Garbuzov <bo...@keystrokenet.com> on 2000/04/04 23:04:57 UTC
I can not set the table's caption
Code
String tableName = "tableName";
HTMLTableElementImpl table = new HTMLTableElementImpl ((HTMLDocumentImpl) htmlDocument, tableName);
body.appendChild (table);
String captionName = "captionName";
HTMLTableCaptionElementImpl caption = new HTMLTableCaptionElementImpl ((HTMLDocumentImpl) htmlDocument, captionName);
table.setCaption (caption);
fails the following way:
java.lang.IllegalArgumentException: HTM016 Argument 'caption' is not an element of type <CAPTION>.
at org.apache.html.dom.HTMLTableElementImpl.setCaption(HTMLTableElementImpl.java:133)
at com.keystrokenet.loanproduct.xml.test.HtmlLab.executeTestBody(HtmlLab.java:150)