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 21810 - Example document not conforming
Summary: Example document not conforming
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Leif Halvard Silli
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 04:26 UTC by Jukka K. Korpela
Modified: 2013-04-24 15:40 UTC (History)
5 users (show)

See Also:


Attachments

Description Jukka K. Korpela 2013-04-24 04:26:21 UTC
The example document in section 11 is not conforming. Using cut and paste, the W3C Validator reports 11 errors. The reason is that the example contains constructs like <svg> in text, meant to be displayed as-is, but the “<” character has not been escaped. Similarly for some occurrences of “&”.

These problems are not present in the version
http://dev.w3.org/html5/html-xhtml-author-guide/SamplePage.html
linked to, but that version has a different problem:
It has the tag <meta charset='utf-8'>, which is not present in the version presented in section 11 and which lacks the “/” character, so that the document is not well-formed.
Comment 1 Leif Halvard Silli 2013-04-24 12:15:39 UTC
Fixed. Checked in as revision: 1.102; (Eliot, while ReSpec prevents us from keeping the editor’s draft fully polyglot, I suggest we try to keep the document _XML-compatible_ all the time.)
Comment 2 Leif Halvard Silli 2013-04-24 12:32:29 UTC
OK. I think you want the code to validate when pasted into the validator. Looking at it again.
Comment 3 Leif Halvard Silli 2013-04-24 15:40:11 UTC
* Now I have made the code in the inline example document validated also when you paste it.

* I also updated the code a bit so that we, editors, can simply browse the main document and paste the result into the sample documents.

* Thus I updated the sample document accordingly.

* Additionally, I added a 'hard link' to a copy of the sample document served as XHTML, thus exemplifying that polyglots can be served 'both ways'.

See commits 1.102 to 1.106.

http://dev.w3.org/cvsweb/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html?rev=1.106