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 15006 - Sample document as displayed is not well-formed XML
Summary: Sample document as displayed is not well-formed XML
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 13:55 UTC by Henry S. Thompson
Modified: 2013-04-08 04:22 UTC (History)
4 users (show)

See Also:


Attachments

Description Henry S. Thompson 2011-11-30 13:55:26 UTC
At various points in the document offered in section "Example Document", markup is mentioned without being escaped.  In one case, i.e.

  "Polyglot markup introduces undeclared (native) default namespaces 
      for the the root SVG element (<svg>)"

this makes the document you get if you simply copy the visible text not be well-formed XML.  Here (and e.g. for "<p></p> not <p />") the '<' should be replaced with '&lt;'.

Also wrt this example, it's probably misleading to leave unescaped link markup in the displayed text.  I would suggest simply wrapping the entire exact SamplePage.html document (which itself is well-formed) in a CDATA-section in your source HTML, then all the above problems will go away.
Comment 1 Michael[tm] Smith 2011-12-25 02:44:10 UTC
(In reply to comment #0)
> Also wrt this example, it's probably misleading to leave unescaped link markup
> in the displayed text.  I would suggest simply wrapping the entire exact
> SamplePage.html document (which itself is well-formed) in a CDATA-section in
> your source HTML, then all the above problems will go away.

The spec is served as text/html
Comment 2 Eliot Graff 2013-04-08 04:22:20 UTC
Cleaned up the sample code and removed hyperlinks in the code.


new revision: 1.92; previous revision: 1.91