Implement DOMTokenList.supports API

This commit is contained in:
Vincent Ricard 2020-09-20 23:05:41 +02:00
parent 3f7697690a
commit 2a4dd894de
20 changed files with 147 additions and 72 deletions

View file

@ -20,6 +20,8 @@ interface DOMTokenList {
boolean toggle(DOMString token, optional boolean force);
[CEReactions, Throws]
boolean replace(DOMString token, DOMString newToken);
[Pure, Throws]
boolean supports(DOMString token);
[CEReactions, Pure]
stringifier attribute DOMString value;

View file

@ -19,8 +19,8 @@ interface HTMLAreaElement : HTMLElement {
// attribute DOMString download;
// [CEReactions]
// attribute USVString ping;
// [CEReactions]
// attribute DOMString rel;
[CEReactions]
attribute DOMString rel;
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
// hreflang and type are not reflected
};