Bug 1944511 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

https://github.com/whatwg/dom/pull/1268 mentions "attribute's change, append, and replace"

setAttribute/setAttributeNS was implemented in bug 1925468. However, there are other ways to set attributes that would require similar TT checks too.

Looking at currently failing tests:

* block-string-assignment-to-attribute-via-attribute-node.html: They set the attribute's node value via `textContent`/`nodeValue`.
* block-string-assignment-to-Element-setAttribute.html: The remaining failure is a test relying on `removeAttributeNode()`.
* Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.html: The assertion failures are for `removeAttributeNode()`.
https://github.com/whatwg/dom/pull/1268 mentions "attribute's change, append, and replace"

setAttribute/setAttributeNS was implemented in bug 1925468. However, there are other ways to set attributes that would require similar TT checks too.

Looking at currently failing tests:

* block-string-assignment-to-attribute-via-attribute-node.html: They set the attribute's node value via `textContent`/`nodeValue`.
* block-string-assignment-to-Element-setAttribute.html: The remaining failure is a test relying on `setAttributeNode()`.
* Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.html: The assertion failures are for `setAttributeNode()`.

Back to Bug 1944511 Comment 0