Bugs item #446933, was opened at 2001-08-01 13:27
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=116035&aid=446933&group_id=16035

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Wason (awason)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTMLWriter missing empty elements

Initial Comment:
HTMLWriter is missing some empty HTML elements in its 
empty element close set.

Based on the HTML 4.01 DTD, 
http://www.w3.org/TR/html4/sgml/dtd.html
the following elements should be added to the set in 
HTMLWriter.loadOmitElementCloseSet()

PARAM
AREA
LINK
COL
BASE
META

Since this method is protected, a workaround is to 
subclass and add the elements in the subclass:

w = new HTMLWriter() {
    protected void loadOmitElementCloseSet(Set set) {
        super.loadOmitElementCloseSet(set);
        set.add("param");
        set.add("PARAM");
        set.add("area");
        set.add("AREA");
        set.add("link");
        set.add("LINK");
        set.add("col");
        set.add("COL");
        set.add("base");
        set.add("BASE");
        set.add("meta");
        set.add("META");
    }
};


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=116035&aid=446933&group_id=16035

_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to