Issue Details (XML | Word | Printable)

Key: MYFACES-1774
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Manfred Geiler
Reporter: Manfred Geiler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MyFaces Core

HtmlLinkRenderer should output & instead of & as the url param separator within href attribute according to HTML Spec

Created: 21/Nov/07 12:32 PM   Updated: 01/Jun/09 11:27 PM
Return to search
Component/s: General, JSR-127, JSR-252
Affects Version/s: 1.1.5, 1.2.0
Fix Version/s: 1.1.7, 1.2.7

Time Tracking:
Not Specified

Issue Links:
Reference
 

Resolution Date: 01/Jun/09 11:27 PM


 Description  « Hide
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 "&amp;" should be used instead of "&":
"Authors should use "&amp;" (ASCII decimal 38) instead of "&" to avoid confusion with the beginning of a character reference (entity reference open delimiter). Authors should also use "&amp;" 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 "&amp;" 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.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.