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

Reply via email to