You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing application/xml, then there should be no special case for the HTML <script> tag. In particular,
newxmldom.DOMParser().parseFromString('<html xmlns="http://www.w3.org/1999/xhtml"><head><script> a < b </script></head></html>','application/xml');
should report an error and
vardoc=newxmldom.DOMParser().parseFromString('<html xmlns="http://www.w3.org/1999/xhtml">'+'<head><script><![CDATA[ text="]]]><![CDATA[]>"; ]]></script></head>'+'<body><p><![CDATA[ text ]]></p></body></html>','application/xml');
should result in doc.textContent === ' text="]]>"; text '. The serializer should not make the assumption that a <script> tag will contain at most single child which is a text node.
I know you probably had all the best intentions in mind with this, but it breaks interoperability with other tools, since the result will not be well-formed XML. There are situations where you want to embed XHTML into other stuff, to be processed by some later stage.
The text was updated successfully, but these errors were encountered:
When parsing
application/xml
, then there should be no special case for the HTML<script>
tag. In particular,should report an error and
should result in
doc.textContent === ' text="]]>"; text '
. The serializer should not make the assumption that a<script>
tag will contain at most single child which is a text node.I know you probably had all the best intentions in mind with this, but it breaks interoperability with other tools, since the result will not be well-formed XML. There are situations where you want to embed XHTML into other stuff, to be processed by some later stage.
The text was updated successfully, but these errors were encountered: