Bug 130125
Summary: | xslt fragment not allowing table row | ||
---|---|---|---|
Product: | WebKit | Reporter: | mark.duncan |
Component: | XML | Assignee: | Nobody <webkit-unassigned> |
Status: | REOPENED | ||
Severity: | Normal | CC: | ahmad.saleem792, ap, zalan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Windows 7 |
mark.duncan
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
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
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.