ReducedHTMLParser handles unquoted attribute values incorrectly
---------------------------------------------------------------

         Key: MYFACES-1014
         URL: http://issues.apache.org/jira/browse/MYFACES-1014
     Project: MyFaces
        Type: Bug
  Components: Tomahawk  
    Versions: Nightly    
    Reporter: Simon Kitching
 Assigned to: Simon Kitching 


ReducedHTMLParser is called by AddResource to figure out where to insert 
<script>, <style> and other tags into a generated page.

If it encounters
  <sometag name=myname>
then it incorrectly consumes the trailing > as part of the attribute value, 
resulting in a warning message when it then can't find the end of the tag.
Quoted attribute values are fine, as are ones that are followed by whitespace.

workarounds: quote the value or put a space before the > character.
correct fix: check the HTML specs to see what chars are valid in an unquoted 
HTML attribute value, then consume only those when an unquoted
attribute value is found.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to