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 9961 - View Source: Please base the markup of the polyglot spec on the polyglot spec
Summary: View Source: Please base the markup of the polyglot spec on the polyglot spec
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
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-20 13:55 UTC by Leif Halvard Silli
Modified: 2013-09-05 16:10 UTC (History)
8 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2010-06-20 13:55:12 UTC
This the source of the first elements of the draft:

]]
<!DOCTYPE HTML>
<html dir="ltr" lang="en"><head>

  
    <title>Polyglot Markup: HTML-Compatible XHTML Documents</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- 
      === NOTA BENE ===
      For the three scripts below, if your spec resides on dev.w3 you can check them
      out in the same tree and use relative links so that they'll work offline,
     -->
    
    
  <link charset="utf-8" type="text/css" rel="stylesheet" 
href="html-xhtml-authoring-guide_files/respec.css">
[[

ISSUES: doctype is invalid in polyglot markup, namespace is not declared, <link/> and <meta/> lack the "/", the xml:lang attribute is lacking.
Comment 1 Henri Sivonen 2010-07-09 06:25:22 UTC
(In reply to comment #0)
> ISSUES: doctype is invalid in polyglot markup,

Either way, the doctype is banned by pubrules. That is, you aren't allowed to use HTML5 in /TR/.
Comment 2 Eliot Graff 2010-10-13 23:26:37 UTC
I have created a script to follow for each time I publish, and I believe that the source code for the editor's draft is now polyglot-compliant. Let me know if I've missed anything.

You can also check the 12 October hearbeat draft. Though it's not officially published, the draft can be viewed at http://dev.w3.org/html5/html-xhtml-author-guide/WD-html-polyglot-20101012.htm.

Thanks for your help and patience.

Eliot
Comment 3 Sam Ruby 2011-04-19 15:49:28 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > ISSUES: doctype is invalid in polyglot markup,
> 
> Either way, the doctype is banned by pubrules. That is, you aren't allowed to
> use HTML5 in /TR/.

Action assigned to Mike Smith:

http://www.w3.org/html/wg/tracker/actions/202

- Sam Ruby
Comment 4 Sam Ruby 2011-07-07 22:27:51 UTC
Example of unclosed markup in <http://www.w3.org/TR/html-polyglot/>:

<input onclick="closeWarning(this.parentNode)" type="button" value="X">

See also:

http://www.w3.org/2011/05/26-html-wg-minutes.html#item01
http://www.w3.org/2011/07/07-html-wg-minutes.html#item12
Comment 5 Michael[tm] Smith 2011-08-04 05:06:49 UTC
mass-move component to LC1
Comment 6 Michael[tm] Smith 2011-08-04 05:07:13 UTC
mass-move component to LC1
Comment 7 Eliot Graff 2011-09-20 19:33:02 UTC
This is now fixed in the source for the editors draft and the latest TR draft.

Thanks,

Eliot
Comment 8 Leif Halvard Silli 2011-09-20 20:10:44 UTC
It is simple to verify that it has not been fixed: just parse the document as XHTML. You will then set:

1. There is an illegal &nbsp; - search for 'polyglot&nbsp;markup' in
     the code
2. There is no xmlns='' attribute that declares the XHTML namespace.
3  There is no xml:lang attribute (unlike 1. and 2., this migh tnot 
     have any visible impact though)

I tested both http://dev.w3.org/html5/html-xhtml-author-guide/ and http://www.w3.org/TR/html-polyglot/.
Comment 9 Eliot Graff 2013-09-05 16:08:58 UTC
Resolving as this is now part of the publishing process for polyglot
Comment 10 Leif Halvard Silli 2013-09-05 16:10:53 UTC
Fingers crossed.