Bugzilla – Bug 576
Reduce the number of parse errors for EOF in DOCTYPE. (bug 6351) (credit: hs)
Last modified: 2009-11-23 17:17:28 CET
Index: source =================================================================== --- source (revision 3120) +++ source (revision 3121) @@ -74378,6 +74378,11 @@ <dt>U+0020 SPACE</dt> <dd>Switch to the <span>before DOCTYPE name state</span>.</dd> + <dt>EOF</dt> + <dd><span>Parse error</span>. Create a new DOCTYPE token. Set its + <i>force-quirks flag</i> to <i>on</i>. Emit the token. Reconsume + the EOF character in the <span>data state</span>.</dd> + <dt>Anything else</dt> <dd><span>Parse error</span>. Reconsume the current character in the <span>before DOCTYPE name state</span>.</dd>