This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9976 - Base Polyglot Markup's XML requirements on Canonical XML (C14N)
Summary: Base Polyglot Markup's XML requirements on Canonical XML (C14N)
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML/XHTML Compat. Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: FPWD
Assignee: Eliot Graff
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/html-xhtml-au...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 21:37 UTC by Leif Halvard Silli
Modified: 2010-10-05 13:07 UTC (History)
5 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2010-06-21 21:37:19 UTC
As I noted in Bug 9965, Canonical XML - aka C14N - have some requirements that looks like relevant design principles for Polyglot Markup - at least in some stake holders' opinions. For example C14n requires:

* that <li/> should be written as <li></li>
* that document uses UTF-8
* that class="   one     two" is written class="one two" 
* XML declaration must be removed

For overview: http://www.w3.org/TR/xml-c14n#Terminology

Hence i suggest as a design principle for the Polyglot Markup that the XML requirements should be based on Canoncical XML - except when that principle is incompatible with HTML5. (One place where it is incompatible is in C14N's requirement to remove the DOCTYPE).)

Positive: Adopting such a principle would make it simpler to justify and agree about the design of Polyglot Markup. 

Negative: The requiremetns of C14N are, however, stricter than the the _real_ requirements of Polyglot Markup.

JUSTIFICATION: It seems to be the case that quite a few people with a stake in Polyglot Markup wants to base the polyglot requirements on something that is stricter thant the the _real_ requirements. And because of that, I think it is important to have something solid to base those extra requirements on. Rather than randomly picking one's favorite restrictions/permissions.

(For example, there are conditionas when it is not necessary to write <li/> as <li></li> - even when the document is meant to be polyglot. But instead of defining the exceptions  - or our own restrictions - we could simply pick Canonical XML's rulings as base.)
Comment 1 Leif Halvard Silli 2010-06-22 06:03:08 UTC
I guess, that that this bug can be closed ... The main service Canonical XML can do to us may be that it a) can serve as example of what "plain" XML does _not_ require. Plain XML does not remove multiple spaces in the DOM. On the other side, C14N also shows us that many of the HTML5 requirements, can also find justification in C14N. But the polyglot spec should be based on compatibility with "normal" XML.
Comment 2 Eliot Graff 2010-06-22 19:25:35 UTC
See Leif's comments.