[whatwg] Parsing: Greater-than characters in doctype

Simon Pieters zcorpan at gmail.com
Fri Jun 29 01:59:55 PDT 2007


All browsers terminate the doctype at the first ">" character, even if  
it's inside the public identifier or system identifier. I think the spec  
should reflect this by adding:

    U+003E GREATER-THAN SIGN (>)
       Parse error. Set the DOCTYPE token's correctness flag to incorrect.
       Emit that DOCTYPE token. Switch to the data state.

...to the DOCTYPE public identifier (double-quoted), DOCTYPE public  
identifier (single-quoted), DOCTYPE system identifier (double-quoted), and  
DOCTYPE system identifier (single-quoted) states.

-- 
Simon Pieters



More information about the whatwg mailing list