h:outputText incorectly renders an extra <span>
-----------------------------------------------
Key: MYFACES-3298
URL: https://issues.apache.org/jira/browse/MYFACES-3298
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 2.1.2
Reporter: Jarek
The h:outputText seems to incorectly render a <span> element, even though no
id/style/styleClass attribute is specified (as specified in
http://myfaces.apache.org/core21/myfaces-impl/tlddoc-facelets/index.html)
Example:
<h:outputText value="abc" escape="false" /> ---renders---> <span>abc</span>
In 2.1.1 it corectly rendered just abc.
Reason for the regression seems to be the optimization introduced in
MYFACES-3237. I didn't go much into the details of the optimization mechanism,
but seems that in HtmlTextRendererBase:renderOutput the "span = true" gets
incorectly set when any attribute is encountered (and not only one of
id/style/styleClass).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira