Bugzilla – Bug 79
DOCTYPE parsing change: '>' can close a DOCTYPE even in the quoted parts
Last modified: 2008-03-03 13:21:59 CET
Index: source =================================================================== --- source (revision 1224) +++ source (revision 1225) @@ -36566,6 +36566,11 @@ <dt>U+0022 QUOTATION MARK (")</dt> <dd>Switch to the <span>after DOCTYPE public identifier state</span>.</dd> + <dt>U+003E GREATER-THAN SIGN (>)</dt> + <dd><span>Parse error</span>. Set the DOCTYPE token's correctness + flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the + <span>data state</span>.</dd> + <dt>EOF</dt> <dd><span>Parse error</span>. Set the DOCTYPE token's correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the @@ -36591,6 +36596,11 @@ <dt>U+0027 APOSTROPHE (')</dt> <dd>Switch to the <span>after DOCTYPE public identifier state</span>.</dd> + <dt>U+003E GREATER-THAN SIGN (>)</dt> + <dd><span>Parse error</span>. Set the DOCTYPE token's correctness + flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the + <span>data state</span>.</dd> + <dt>EOF</dt> <dd><span>Parse error</span>. Set the DOCTYPE token's correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the @@ -36703,6 +36713,11 @@ <dt>U+0022 QUOTATION MARK (")</dt> <dd>Switch to the <span>after DOCTYPE system identifier state</span>.</dd> + <dt>U+003E GREATER-THAN SIGN (>)</dt> + <dd><span>Parse error</span>. Set the DOCTYPE token's correctness + flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the + <span>data state</span>.</dd> + <dt>EOF</dt> <dd><span>Parse error</span>. Set the DOCTYPE token's correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the @@ -36728,6 +36743,11 @@ <dt>U+0027 APOSTROPHE (')</dt> <dd>Switch to the <span>after DOCTYPE system identifier state</span>.</dd> + <dt>U+003E GREATER-THAN SIGN (>)</dt> + <dd><span>Parse error</span>. Set the DOCTYPE token's correctness + flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the + <span>data state</span>.</dd> + <dt>EOF</dt> <dd><span>Parse error</span>. Set the DOCTYPE token's correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
*** This bug has been marked as a duplicate of bug 80 ***