Steps to reproduce
A minimal XML document that invokes an XSLT stylesheet:
<?xml-stylesheet type='text/xsl' href='fmt.xsl'?> <x/>
and a stylesheet that creates an empty element which isn’t self-closing in HTML:
<xsl:stylesheet version="1.0" xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns='http://www.w3.org/1999/xhtml'> <xsl:template match='/'> Before <textarea></textarea> After </xsl:template> </xsl:stylesheet>
Before <textarea /> After
which is parsed as HTML5 into:
which is effectively:
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
As a workaround, place any text in the
<textarea> to avoid the use of self-closing element syntax.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “James M.”
Changed Status to “Not reproducible”
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.
The MS Edge Team