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
The left angle bracket (<) MUST NOT appear in their literal form,
[...] they MUST be escaped using [...] the string <".
The right angle bracket (>) [...] MUST be escaped using ">"
jblemee
changed the title
Characters (&), (<) and (>) escaped incorrectly in xml attributes
Characters (<) and (>) escaped incorrectly in xml attributes
Aug 18, 2023
For
XML
document :Full source : https://www.w3.org/TR/xml11/#syntax
Test snippet:
Expected:
<?xml version="1.0" encoding="utf-8"?><root attr="<>" />
Got instead:
<?xml version="1.0" encoding="utf-8"?><root attr="<>" />
Note :
HTML
parser must not changed and does not have the same behavior.toString
function must escaped, thegetAttribute("attr")
must continue to provide unescaped characters (<) and (>)The text was updated successfully, but these errors were encountered: