Bug 11782

Summary: XSL transform ignores disable-output-escaping
Product: WebKit Reporter: Brian Bockelman <bbockelm>
Component: XMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: webkit
Priority: P2    
Version: 419.x   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
a test that works none

Description Brian Bockelman 2006-12-08 10:00:02 PST
When transforming XML with an XSL stylesheet, you should be able to disable output escaping when desired.

For example, I should be able to do the following:

<img>
  <xsl:attribute name="src">/graphs?var=value<xsl:text disable-output-escaping="yes">&amp;</xsl:text></xsl:attribute>
</img>

the "src" attribute of "img" should be "/graphs?var=value&".  In Safari (but not FF or IE6), you end up with "/graphs?var=value&#38;".

The reference for this in the XSLT spec is here:

http://www.w3.org/TR/xslt#disable-output-escaping
Comment 1 Alexey Proskuryakov 2007-07-05 04:29:52 PDT
Created attachment 15399 [details]
a test that works

I have tried to make a test case for this bug, but couldn't get the attribute value to be escaped, even when I removed disable-output-escaping. I'm getting identical results from Firefox 2, r18068 (from December 8th) and r23922.

Please provide more information about this issue.
Comment 2 Robert Blaut 2008-03-02 03:46:32 PST
(In reply to comment #1)
> Created an attachment (id=15399) [edit]
> a test that works
> 
> I have tried to make a test case for this bug, but couldn't get the attribute
> value to be escaped, even when I removed disable-output-escaping. I'm getting
> identical results from Firefox 2, r18068 (from December 8th) and r23922.
> 
> Please provide more information about this issue.
> 

I also cannot confirm the bug. No more info form reporter on this subject since initial reporting. Marked as WORKSFORME.