Details
Description
Currently a <h:outputLink> with nested <f:param> components is rendered as
<a href="somepage?foo=1&bar=2">...</a>
According to http://www.w3.org/TR/html401/ the character entity "&" should be used instead of "&":
"Authors should use "&" (ASCII decimal 38) instead of "&" to avoid confusion with the beginning of a character reference (entity reference open delimiter). Authors should also use "&" in attribute values since character references are allowed within CDATA attribute values."
Though current browsers seem to have no problem with "&" characters within href attributes, this issue gets serious when using XHTML. Not using the character entity "&" instead of "&" leads to invalid (not well-formed) XML data!
Therefore I think we should fix this.
BTW, the RI renders the wrong "&" as well.
Attachments
Issue Links
- is related to
-
MYFACES-1841 HtmlResponseWriterImpl.writeURIAttribute does not perform proper URLs encoding ( ex: & should be encoded in &)
- Closed