trusted-types icon indicating copy to clipboard operation
trusted-types copied to clipboard

Integration with DOM APIs

Open lukewarlow opened this issue 1 year ago • 1 comments
trafficstars

Along with the existing specced IDL changes Chrome also has the below changes

interface mixin ParentNode {
  [Unscopable, RaisesException, CEReactions] void prepend((Node or DOMString or TrustedScript)... nodes);
  [Unscopable, RaisesException, CEReactions] void append((Node or DOMString or TrustedScript)... nodes);
  [Unscopable, RaisesException, CEReactions] void replaceChildren((Node or DOMString or TrustedScript)... nodes);
};
interface mixin ChildNode {
  [Unscopable, RaisesException, CEReactions] void before((Node or DOMString or TrustedScript) ... nodes);
  [Unscopable, RaisesException, CEReactions] void after((Node or DOMString or TrustedScript)... nodes);
  [Unscopable, RaisesException, CEReactions] void replaceWith((Node or DOMString or TrustedScript)... nodes);
};

lukewarlow avatar Feb 19 '24 18:02 lukewarlow

Moved DOMParts API IDL to its own issue #441

lukewarlow avatar Feb 20 '24 13:02 lukewarlow