Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upparser_inserted fields should probably be resetted when unbound from the tree. #14616
Labels
Comments
|
Should review what, if anything, the spec says, and what other browsers do. |
|
It's not reset after unbinding because the spec doesn't say it should be reset. I reviewed most of that when doing parser changes and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a few elements (currently script and link, also style with #14540) that track whether they've been injected by the parser.
The link element's field is never set back to false, and the script field should probably be set to false also after unbinding from the tree.
Presumably somebody could write an script that grabs a loaded link element, then re-inserts it with a different
href, and that probably shouldn't be script blocking.Is that right?
cc @Ms2ger and @jdm, which probably know more about script-blocking loads than I.