diff --git a/dom.bs b/dom.bs index bd45d43e..d96c425a 100644 --- a/dom.bs +++ b/dom.bs @@ -8582,7 +8582,7 @@ interface DOMTokenList { readonly attribute unsigned long length; getter DOMString? item(unsigned long index); boolean contains(DOMString token); - void add(DOMString... tokens); + boolean add(DOMString... tokens); void remove(DOMString... tokens); boolean toggle(DOMString token, optional boolean force); void replace(DOMString token, DOMString newToken); @@ -8606,8 +8606,8 @@ associated attribute's local name. token are:
    -
  1. If the associated attribute's local name does not define supported - tokens, return true. +

  2. If the associated attribute's local name does not define + supported tokens, return true.

  3. Let lowercase token be a copy of token, converted to ASCII lowercase. @@ -8642,8 +8642,16 @@ are to: associated attribute's local name attribute or associated element's associated attribute's local name attribute is -set, set tokens to the new value, -parsed. +set, run these substeps: + +

      +
    1. Let temporary tokens be the new value, + parsed. + +

    2. For each token in temporary tokens, run + validation steps with token. If the return value is true, append token + to tokens. +

    When an associated element's associated attribute's local name attribute is diff --git a/dom.html b/dom.html index ffef6619..bce85777 100644 --- a/dom.html +++ b/dom.html @@ -69,7 +69,7 @@

    DOM

    -

    Living Standard — Last Updated

    +

    Living Standard — Last Updated

    Participate: @@ -4037,7 +4037,7 @@

    length; getter DOMString? item(unsigned long index); boolean contains(DOMString token); - void add(DOMString... tokens); + boolean add(DOMString... tokens); void remove(DOMString... tokens); boolean toggle(DOMString token, optional boolean force); void replace(DOMString token, DOMString newToken); @@ -4052,8 +4052,7 @@

    A DOMTokenList object’s validation steps for a given token are:

    1. -

      If the associated attribute’s local name does not define supported - tokens, return true.

      +

      If the associated attribute’s local name does not define supported tokens, return true.

    2. Let lowercase token be a copy of token, converted to ASCII lowercase.

    3. @@ -4074,7 +4073,13 @@


      When a DOMTokenList object is created and its associated element has an associated attribute’s local name attribute or -associated element’s associated attribute’s local name attribute is set, set tokens to the new value, parsed.

      +associated element’s associated attribute’s local name attribute is set, run these substeps:

      +
        +
      1. +

        Let temporary tokens be the new value, parsed.

        +
      2. +

        For each token in temporary tokens, run validation steps with token. If the return value is true, append token to tokens.

        +

      When an associated element’s associated attribute’s local name attribute is removed, set tokens to the empty set.

      tokenlist . length @@ -5507,7 +5512,7 @@

      Normativ
      [CSSOM-VIEW]
      Simon Pieters; Glenn Adams. CSSOM View Module. 17 December 2013. WD. URL: http://dev.w3.org/csswg/cssom-view/
      [ENCODING] -
      Anne van Kesteren; Joshua Bell; Addison Phillips. Encoding. 16 September 2014. CR. URL: https://encoding.spec.whatwg.org/ +
      Anne van Kesteren; Joshua Bell; Addison Phillips. Encoding. 20 October 2015. CR. URL: https://encoding.spec.whatwg.org/
      [RFC2119]
      S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. March 1997. Best Current Practice. URL: https://tools.ietf.org/html/rfc2119
      [SELECTORS-4] @@ -6003,7 +6008,7 @@

      IDL Inde readonly attribute unsigned long length; getter DOMString? item(unsigned long index); boolean contains(DOMString token); - void add(DOMString... tokens); + boolean add(DOMString... tokens); void remove(DOMString... tokens); boolean toggle(DOMString token, optional boolean force); void replace(DOMString token, DOMString newToken);