W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2007

[Bug 5300] [Serialization] Empty elements in HTML

From: <bugzilla@wiggum.w3.org>
Date: Mon, 03 Dec 2007 13:21:58 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1IzBFG-00064y-GT@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5300

           Summary: [Serialization] Empty elements in HTML
           Product: XPath / XQuery / XSLFO / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization
        AssignedTo: zongaro@ca.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


The serialization spec says in 7.1:

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. 

So, if the result tree contains <link>some content</link>, how is it to be
serialized?

I think a more precise statement would be:

The HTML output method MUST NOT output an end-tag for an empty element if the
element type has an empty content model. For HTML 4.0, the element types that
have an empty content model are area, base, basefont, br, col, frame, hr, img,
input, isindex, link, meta and param.
Received on Monday, 3 December 2007 13:22:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:22 GMT