[ http://mc4j.org/jira/browse/STS-431?page=comments#action_10896 ]
Ben Gunter commented on STS-431:
--------------------------------
Interesting. The URL should definitely be encoded when you're writing the URL
right into a page (no var). But if you something like ...
<s:url var="url" beanclass="..." />
<s:link href="${url}" ... />
then the URL would be encoded twice, which would be bad. OTOH if you do
something like ...
<s:url var="url" beanclass="..." />
<a href="${url}">...</a>
Then the link would not get encoded at all. I think the best thing would be to
encode the URL by default if writing it directly to the page, do not encode it
if saving it in a var, and add a new attribute, say "encoded" or "htmlencoded"
which can be used to explicitly say whether it should be encoded or not.
Thoughts?
> link and url tags generate URLs that are not XHTML compliant
> ------------------------------------------------------------
>
> Key: STS-431
> URL: http://mc4j.org/jira/browse/STS-431
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5, Release 1.4.3
> Environment: N/A
> Reporter: Alan Burlison
> Assigned To: Ben Gunter
>
> For XHTML compliance, all URLs need to be encoded to use "&" instead of
> "&". Because Stripes doesn't do this, no document that uses the Stripes
> "link" or "url" tags will be XHTML compliant.
> See http://www.htmlhelp.com/tools/validator/problems.html#amp
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development