User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060116 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060116 Firefox/1.6a1 Comments that start with "</" should be parsed the traditional way, i.e. close the comment upon the first ">", rather than as an "SGML" comment. Reproducible: Always Steps to Reproduce: 1. Open data:text/html,<!DOCTYPE html><p></-->PASS<!-->FAIL<! --> 2. 3. Actual Results: There are two comments, ">PASS<!" and " --". Expected Results: </--> should be parsed as a bogus comment, containing "--".
added reporter's testcase into URL:
Created attachment 208751 [details] [diff] [review] Easy fix This ensures that strict comments do really start with <!--. It also fixes an illegal use of |static NS_NAMED_LITERAL_STRING(...)|.
Comment on attachment 208751 [details] [diff] [review] Easy fix r+sr=jst
Fix checked into trunk.