output of empty tags is wrong if serializing html
Bug #866184 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Nicolae Brinza |
Bug Description
The spec says:
The HTML output method MUST NOT output an end-tag for empty elements. For HTML 4.0, the empty elements are area, base, basefont, br, col, frame, hr, img, input, isindex, link, meta and param. For example, an element written as <br/> or <br></br> in an XSLT stylesheet MUST be output as <br>.
If I execute Zorba as follows:
zorba --serialize-html -q "<br></br>"
The result is "<html>
To post a comment you must log in.
The check was in place but it did not work because the default version for HTML was not set to "4.0" as it should have been, but was left as "1.0" from the XML serialization.