mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Implement trusted types for remaining attribute sinks (#38784)
Additionally, several methods were updated with spec comments. That's because the "adopt the document from the element document" step was missing. By adding these spec comments, I also restructured some code to avoid duplication of mutation records and custom element reaction queueing. Node.textContent doesn't propagate the error yet, as that method has a lot of separate callers of elements that wouldn't fail. I will refactor those in a follow-up PR to keep things manageable. This implements part of the DOM integration from https://github.com/whatwg/dom/pull/1268 Part of #36258 --------- Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> Signed-off-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com>
This commit is contained in:
parent
dd7b2a5ee2
commit
3c89763b77
12 changed files with 223 additions and 1349 deletions
|
@ -17,7 +17,7 @@ interface Attr : Node {
|
|||
readonly attribute DOMString localName;
|
||||
[Constant]
|
||||
readonly attribute DOMString name;
|
||||
[CEReactions, Pure]
|
||||
[CEReactions, Pure, SetterThrows]
|
||||
attribute DOMString value;
|
||||
|
||||
[Pure]
|
||||
|
|
|
@ -54,7 +54,7 @@ interface Node : EventTarget {
|
|||
[Pure]
|
||||
readonly attribute Node? nextSibling;
|
||||
|
||||
[CEReactions, Pure]
|
||||
[CEReactions, Pure, SetterThrows]
|
||||
attribute DOMString? nodeValue;
|
||||
[CEReactions, Pure]
|
||||
attribute DOMString? textContent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue