Description
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/h/outputText.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).
Attachments
Issue Links
- relates to
-
MYFACES-3583 h:outputFormat renders unneccessary <span> tag
- Closed