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 6132 - [sniffing] No whitespace before "<!DOCTYPE HTML" in content sniffing
Summary: [sniffing] No whitespace before "<!DOCTYPE HTML" in content sniffing
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P4 normal
Target Milestone: ---
Assignee: Adam Barth
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-01 14:33 UTC by Simon Pieters
Modified: 2010-10-04 14:47 UTC (History)
5 users (show)

See Also:


Attachments

Description Simon Pieters 2008-10-01 14:33:15 UTC
2.7.4 Content-Type sniffing: unknown type says in the table:

FF FF DF DF DF DF DF DF DF FF DF DF DF DF 	3C 21 44 4F 43 54 59 50 45 20 48 54 4D 4C 	text/html 	Scriptable 	The string "<!DOCTYPE HTML" in US-ASCII or compatible encodings, case-insensitively.

Any reason why whitespace before the doctype isn't skipped (considering that whitespace is skipped before "<HTML", "<HEAD" and "<SCRIPT")?
Comment 1 Ian 'Hixie' Hickson 2009-05-24 01:28:44 UTC
Reassigning to Adam.
Comment 2 Adam Barth 2009-05-25 19:20:52 UTC
Yes, you're right.  We're supposed to skip white space for the doctype.  I'll be updating the draft in about a week and I'll be sure to make this change.  Thanks.
Comment 3 Adam Barth 2009-05-30 23:07:07 UTC
Thanks.  Fixed.  You'll be able to see the updated table once I figure out how to generate a TXT from I-D XML.