- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 03 Dec 2007 13:21:58 +0000
- To: public-qt-comments@w3.org
- CC:
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 UTC