XSLTProcessor() in Edge Browser inserts incorrect namespace on transformation

Fixed, not yet flighted Issue #4124725

Details

Created
Aug 13, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Javascript:

var processor = new XSLTProcessor()
processor.importStylesheet(xsl);
var el = processor.transformToDocument(xml);

Both ‘xsl’ and ‘xml’ objects are XML documents loaded via XMLHTTPRequest.responseXML.

XML passed into transformation:

<dataset>
<form>
<group>
<button></button>
</group>
</form>
</dataset>

XML returned from transformation as 'el’:

<dataset>
<form xmlns="http://www.w3.org/1999/xhtml">
<group xmlns="">
<button xmlns="http://www.w3.org/1999/xhtml"></button>
</group>
</form>
</dataset>

XSL:

<?xml version=’1.0’?>
<xsl:stylesheet version=’1.0’ xmlns:xsl=’http://www.w3.org/1999/XSL/Transform’>
<xsl:output method="xml" omit-xml-declaration="yes"/>

<xsl:template match="@* | * | comment()" priority="-2">
<xsl:copy>
<xsl:apply-templates select="@* | * | text() | comment()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

Expected Results:

Elements in XML with names found in HTML should not get the namespace assigned in an XSL transformation.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Rico M.”

      Changed Assigned To from “Rico M.” to “Thomas M.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Thomas M.” to “IE S.”

      Changed Status from “Confirmed” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

      Changed Assigned To from “IE S.” to “Thomas M.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in