Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #316222 for the purposes of fixing in 3.2 +++ A < or > in an attribute value, while perfectly legal, causes the parser to function incorrectly. Examples: <button value=">>"></button> <button value="<<"></button> In the case of JSP, it's assumed that what follows is going to be an embedded tag. So, we'll need to work with both the XMLTokenizer and JSPTokenizer.
Created attachment 171481 [details] patch Tokenizer updates.
Created attachment 171484 [details] unit test updates Have to update some of the unit tests.
Are you sure about the XML changes? I thought this should only apply to HTML and maybe JSP.
(In reply to comment #3) > Are you sure about the XML changes? I thought this should only apply to HTML > and maybe JSP. While it does only apply to HTML and JSP, this does have some positives for XML. Instead of the tokenizer getting confused for a < or > in attribute values, it recovers and the attribute value region remains intact. The validator will then identify that the < or > is invalid in an XML.
Created attachment 171936 [details] tweaked patch Removed the unnecessary assignment of 'fShouldLoadBuffered = true;'
Created attachment 171965 [details] updated unit tests Had to fix up some of the HTML unit tests and added some new ones.
Created attachment 171967 [details] updated unit tests
Code released to Maintenance and HEAD
*** Bug 112807 has been marked as a duplicate of this bug. ***
*** Bug 258676 has been marked as a duplicate of this bug. ***