diff --git a/dom.bs b/dom.bs index d96c425a..ea6c13dc 100644 --- a/dom.bs +++ b/dom.bs @@ -8607,14 +8607,14 @@ associated attribute's local name.
  1. If the associated attribute's local name does not define - supported tokens, return true. + supported tokens, return "no supported tokens".

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

  3. If lowercase token is present in supported tokens, return true. +

  4. If lowercase token is present in supported tokens, return "supported". -

  5. Return false. +

  6. Return "not supported".

A {{DOMTokenList}} object's update steps are @@ -8649,8 +8649,8 @@ associated element's parsed.

  • For each token in temporary tokens, run - validation steps with token. If the return value is true, append token - to tokens. + validation steps with token. If the return value is not "not supported", append + token to tokens.

    When an associated element's @@ -8678,7 +8678,8 @@ associated element's

    Throws a {{SyntaxError}} exception if one if the arguments is the empty string.

    Throws an {{InvalidCharacterError}} exception if one of the arguments contains any ASCII whitespace. -

    Returns false if any invalid arguments passed, true otherwise. +

    Returns "not supported" if any invalid arguments passed, "no supported tokens", if + the associated attribute did not define supported tokens, "supported" otherwise.

    tokenlist . remove(tokens…)
    @@ -8749,11 +8750,12 @@ method, when invoked, must run these steps: {{InvalidCharacterError}} exception. -
  • Let valid be true. +
  • Let valid be "supported".
  • For each token in tokens, in given order, that is not in - tokens, run validation steps with token. If the return value is false, - set valid to false. Otherwise, append token to tokens. + tokens, run validation steps with token and let result be the return value. + If result is not "supported", set valid to result. + If result is not "not supported", append token to tokens.

  • Run the update steps. @@ -8806,7 +8808,7 @@ method, when invoked, must run these steps:

  • If force is passed and is false, return false.

  • Otherwise, run validation steps with token. If the return value is - false, return false. + "not supported", return false.

  • Otherwise, append token to tokens, run the update steps, and return true. @@ -8826,7 +8828,7 @@ method, when invoked, must run these steps: throw an {{InvalidCharacterError}} exception.

  • If token is not in tokens or running the validation steps for - newToken return false, terminate these steps. + newToken return "not supported", terminate these steps.

  • Replace token in tokens with newToken. diff --git a/dom.html b/dom.html index bce85777..823fd714 100644 --- a/dom.html +++ b/dom.html @@ -69,7 +69,7 @@

    DOM

    -

    Living Standard — Last Updated

    +

    Living Standard — Last Updated

    Participate: @@ -4052,13 +4052,13 @@

    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 "no supported tokens".

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

    3. -

      If lowercase token is present in supported tokens, return true.

      +

      If lowercase token is present in supported tokens, return "supported".

    4. -

      Return false.

      +

      Return "not supported".

    A DOMTokenList object’s update steps are to set an attribute value for the associated element using associated attribute’s local name and the result of running the ordered set serializer for tokens.

    @@ -4078,7 +4078,7 @@

    Let temporary tokens be the new value, parsed.

  • -

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

    +

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

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

    @@ -4099,7 +4099,8 @@

    Adds all valid arguments passed, except those already present.

    Throws a SyntaxError exception if one if the arguments is the empty string.

    Throws an InvalidCharacterError exception if one of the arguments contains any ASCII whitespace.

    -

    Returns false if any invalid arguments passed, true otherwise.

    +

    Returns "not supported" if any invalid arguments passed, "no supported tokens", if + the associated attribute did not define supported tokens, "supported" otherwise.

    tokenlist . remove(tokens…)

    Removes arguments passed, if they are present.

    @@ -4152,10 +4153,11 @@

    If token contains any ASCII whitespace, throw an InvalidCharacterError exception.

    -
  • Let valid be true. +
  • Let valid be "supported".
  • -

    For each token in tokens, in given order, that is not in tokens, run validation steps with token. If the return value is false, - set valid to false. Otherwise, append token to tokens.

    +

    For each token in tokens, in given order, that is not in tokens, run validation steps with token and let result be the return value. + If result is not "supported", set valid to result. + If result is not "not supported", append token to tokens.

  • Run the update steps.

  • @@ -4197,7 +4199,7 @@

    If force is passed and is false, return false.

  • Otherwise, run validation steps with token. If the return value is - false, return false.

    + "not supported", return false.

  • Otherwise, append token to tokens, run the update steps, and return true.

    @@ -4210,7 +4212,7 @@

    If either token or newToken contains any ASCII whitespace, throw an InvalidCharacterError exception.

  • -

    If token is not in tokens or running the validation steps for newToken return false, terminate these steps.

    +

    If token is not in tokens or running the validation steps for newToken return "not supported", terminate these steps.

  • Replace token in tokens with newToken.