REOPENED 130125
xslt fragment not allowing table row
https://bugs.webkit.org/show_bug.cgi?id=130125
Summary xslt fragment not allowing table row
mark.duncan
Reported 2014-03-12 05:40:44 PDT
We're experiencing issues when using the xslt processor in safari and chrome when we are trying to convert xml into a table row and then appending into the DOM. If the xsl contains just the tr and td tags then the output is empty, however if these are wrapped in table tags they are included in the output. Produces nothing: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="tableRow"> <tr> <td>Table cell </td> </tr> </xsl:template> Produces output: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="tableRow"> <table> <tr> <td>Table cell </td> </tr> </table> </xsl:template>
Attachments
Ahmad Saleem
Comment 1 2022-06-03 02:06:12 PDT
I converted the "produces nothing" test case into JS Fiddle here: https://jsfiddle.net/7h6zw13e/show I am not able to reproduce "Produce nothing" (empty output) issue, while both test cases show same output in Safari 15.5 on macOS 12.4. "Produce nothing" / above JS Fiddle have same output in other browsers Chrome Canary 104 and Firefox Nightly 103 as well. If my testing methodology is wrong, please retest it. Else appreciate if this can be closed as "RESOLVED CONFIGURATION CHANGED". Thanks!
Alexey Proskuryakov
Comment 2 2022-06-03 11:46:03 PDT
This report doesn't contain a complete test case. This is only an XSLT stylesheet, without an XML file to transform. So putting it into a JSFiddle doesn't exercise the relevant code path. It should be fairly straightforward to make a test case out of this description though.
Note You need to log in before you can comment on or make changes to this bug.