WML treats all errors as fatal errors. That means any error within a document needs to be presented as 'parsing' error by the tokenizer - just like to XML parsing errors.
Created attachment 25549 [details] Initial patch
Created attachment 25550 [details] LayoutTest changes
Comment on attachment 25549 [details] Initial patch With minor comments: 1) our error messages should really be localized 2) should use something like " if (pageState && !pageState->...)"
(In reply to comment #3) > (From update of attachment 25549 [details] [review]) > With minor comments: > > 1) our error messages should really be localized The other XML tokenizer error messages are handled the same. If it's a problem, it's a general problem, would need to investigate how Mac handles translation. > 2) should use something like " if (pageState && !pageState->...)" Fixed. Landed in r38816.