output of empty tags is wrong if serializing html

Bug #866184 reported by Matthias Brantner
6
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><br/></html>"

Tags: serializer
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.