Empty elements generated by XSLT are misparsed as unclosed in HTML

Not reproducible Issue #11041419


Feb 23, 2017
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

A minimal XML document that invokes an XSLT stylesheet:

<?xml-stylesheet type='text/xsl' href='fmt.xsl'?>

and a stylesheet that creates an empty element which isn’t self-closing in HTML:

<xsl:stylesheet version="1.0"

    <xsl:template match='/'>

Result in:

Before <textarea /> After

which is parsed as HTML5 into:

Before <textarea>After

which is effectively:

Before <textarea>After</textarea>

with everything which should appear after the area instead appearing inside it.

I would expect the resulting DOM to exactly match the XSLT output dom, with ‘After’ appearing after the close of the textarea.

As a workaround, place any text in the <textarea> to avoid the use of self-closing element syntax.


1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Status to “Not reproducible”

  • Hello,

    Thank you for providing this information about the issue. After thorough testing, we are unable to reproduce this problem in Edge 14393 through 15145. Please review the screenshot attached and reopen this case when you can provide more details, such as a sample webpage for us to review.

    Best Wishes,
    The MS Edge Team

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

Sign in