[Bug 17710] Polyglot Markup: Make XML validity a principle.

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

David Carlisle <davidc@nag.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davidc@nag.co.uk

--- Comment #1 from David Carlisle <davidc@nag.co.uk> 2012-07-10 12:53:00 UTC ---
(In reply to comment #0)
> Section 4. The DOCTYPE requires that, quote:
> 
>           ]] * The string html is in lowercase letters.  [[
> 

>   Benefits of this proposal: 
> 
>     (1) It favors the use of the HTML5 DOCTYPE, since the HTML5 doctype does
> not add any validity constraints - except the constraint that the DOCTYPE
> itself must contain the 'html' string in lowercase.



The above is not technically correct. If you use 

<!DOCTYPE html>
<html>
...



Then he document is necessarily invalid according to the XML definition of
validity. It is not accurate to say that this DOCTYPE adds no constraints, it
is more accurate to say that it declares no elements, so any use of any element
is invalid.



This is why it is important only to depend on XML well-formedness and not XML
validity when defining polyglot documents.



You are correct however that the requirement that "html" be in lowercase is on
consistent with the stated aims as it is neither required for the document to
be XML well formed nor for it to be conforming HTML5. I suggest this
requirement be dropped. (your ALT 2)

-- 
Configure bugmail: https://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 Tuesday, 10 July 2012 12:53:08 UTC