[Bug 11909] The principles of Polyglot Markup - validity? well-formed? DOM-equality?

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

--- Comment #14 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-02-14 12:27:30 UTC ---
(In reply to comment #11)

> ]]
> Polyglot markup: 
> •is valid HTML5. [HTML5]
> •is well-formed XML. [XML10]

I suggest to replace "is valid HTMl5. [HTML5]" with: 
    ]] is _a_ valid _HTML_ _document_. [HTML5] [[

Because:

a) HTML only exists as "documents" - required elements that you don't type are
generated in the DOM.
b) saying "HTML document" rather than "HTML5 document" has a little bit wider
perspective. Also, HTML5 defines _HTML_. The link - [HTML5] - defines what the
document means by "HTML".

Likewise, I also suggest to replace the "is well-formed XML" sentence with the
following (i.e. I suggest to add the word 'documetn'):
   ]] is _a_ well-formed XML _document_. [XML10] [[

Because

a) to make it congruent with my "is a valid HTML document" proposal
b) the XML 1.0 link actually leads to section in XML 1.0 that bears the title
"2.1 Well-Formed XML Documents"

Comment: In a way, the DOM-equality goal is a result of the requirements to -
at the same time - be a "valid HTML document" and a "well-formed XML document".

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 14 February 2011 12:27:32 UTC