We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setAttribute
When calling setAttribute, even unchanged attributes are escaped. I would like to keep the original strings when editing the HTML source.
Example:
root = HTMLParser.parse("<div unchanged='[\npreserve newline\n]'></div>"); div = root.firstChild console.log(div.toString()) // output: // <div unchanged='[ // preserve newline // ]'></div> div.setAttribute("append","newAttribute"); console.log(div.toString()) // output: // <div unchanged="[\\npreserve newline\\n]" append="newAttribute"></div>' // expected: // <div unchanged='[ // preserve newline // ]' append="newAttribute"></div>'
The text was updated successfully, but these errors were encountered:
fix: do not decode special chractors #240
cdadb13
Thank you.
Sorry, something went wrong.
No branches or pull requests
When calling
setAttribute
, even unchanged attributes are escaped.I would like to keep the original strings when editing the HTML source.
Example:
The text was updated successfully, but these errors were encountered: