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 10793 - Make the DOCTYPE by default XML-compatible: lowercase 'html'
Summary: Make the DOCTYPE by default XML-compatible: lowercase 'html'
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/syntax#t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 14:32 UTC by Leif Halvard Silli
Modified: 2010-10-04 14:47 UTC (History)
6 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2010-09-28 14:32:55 UTC
Spec says:
    ]]  In other words, <!DOCTYPE HTML>, case-insensitively.  [[

Proposal: 

Use 'html' instead of 'HTML':
    ]]  In other words, <!DOCTYPE html>, case-insensitively.  [[

And add that when used for XHTML, then the DOCTYPE is a case-_sensitive_ match of the string '<!DOCTYPE html>'.

The proposal was suggested by Maciej in April (which I then unwisely rejected):
http://lists.w3.org/Archives/Public/public-html/2010Apr/1199

Motivation 1: Make more people (unknowingly) do it right when they try to be XHTML-compaptible/polyglot. 

Motivation 2: According to Sam, HTML5 "lowercases element and non-namespaced attribute names"
http://intertwingly.net/slides/2010/ws-rest/html5-15
Thus it should be more consistent to lowerase the 'html' string.
Comment 1 Ian 'Hixie' Hickson 2010-09-30 08:46:46 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Sure, we can do that.
Comment 2 contributor 2010-09-30 08:47:54 UTC
Checked in as WHATWG revision r5570.
Check-in comment: vaguely push people towards a polyglot-compatible doctype
http://html5.org/tools/web-apps-tracker?from=5569&to=5570