output of empty tags is wrong if serializing html

Bug #866184 reported by Matthias Brantner on 2008-09-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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><br/></html>"

Nicolae Brinza (nbrinza) wrote :

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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers