[ 
http://issues.apache.org/jira/browse/XALANJ-611?page=comments#action_12368535 ] 

Nick Fitzsimons commented on XALANJ-611:
----------------------------------------

Thanks for the feedback, Henry.

Although it is perhaps presumptious of me to second-guess the deliberations of 
the relevant W3C WG, I think it's reasonable to conjecture that the use of 
"should" as opposed to "must" (in the RFC 2119 sense) rwas prompted by the fact 
that existing User Agents tolerate the unescaped ampersands in the "href" 
attribute of the "a" element, and a number of web page creation tools, at the 
time HTML 4.01 was written and probably to this day, would produce such markup. 
"Must" was probably seen as imposing too rigid a constraint, given that the 
then-forthcoming formulation of XHTML 1.0 would impose stricter requirements. 
However, the intention (I believe) was to promote correct usage from that time 
onwards, which means Xalan really should (no pun intended) be producing & 
in this context.

Although I haven't yet read the source, I would assume (given that other 
attributes don't suffer from this) that the code is treating "href" as a 
special case, implying that the fix might be relatively straightforward (not 
that fixes ever turn out to be as straightforward as one imagines). If I get 
time over the next couple of days I'll start getting to know the source and see 
if I can either identify a fix, or at least provide some pointers to those with 
more experience of the codebase.

> HTML output serializes ampersand as "&" in HREF attributes
> ----------------------------------------------------------
>
>          Key: XALANJ-611
>          URL: http://issues.apache.org/jira/browse/XALANJ-611
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Versions: Latest Development Code
>  Environment: Operating System: All
> Platform: All
>     Reporter: julian.reschke
>     Assignee: Xalan Developers Mailing List

>
> Using the HTML output method, an ampersand is serialized as "&". It should 
> be "&".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to