[Bug 28626] [QT3TS] Serialization-xhtml-4

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28626

--- Comment #4 from Tim Mills <tim@cbcl.co.uk> ---
(In reply to Michael Kay from comment #3)
> Tim, as far as I can see, for most of these, the element is not "expected to
> be empty" (because html-version=4 and the elements are in no namespace) and
> therefore minimised tag syntax must not be used. Have I misunderstood
> something?


You're correct.  I'd been caught out by the change from 1.0, where the rule
only applied when the element was an XHTML element.

* Given an empty instance of an XHTML element whose content model is not EMPTY
(for example, an empty title or paragraph) the serializer MUST NOT use the
minimized form. That is, it MUST output <p></p> and not <p />.

( If an element that has no children is an XHTML element with an EMPTY content
model, the serializer MUST use the minimized tag syntax, for example <br />, as
the alternative syntax <br></br> allowed by XML gives uncertain results in many
existing user agents. The serializer MUST include a space before the trailing
/>, e.g. <br />, <hr /> and <img src="karen.jpg" alt="Karen" />.

I'll recheck these before closing...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 23 June 2015 14:52:43 UTC