Skip to content

[css-counter-styles-3] Setting CSSCounterStyleRule.name should exclude invalid <custom-ident> #9363

@cdoublev

Description

@cdoublev

The procedure to set CSSCounterStyleRule.name does not exclude invalid <custom-ident>:

On setting the name attribute, run the following steps:

  1. If the value is an ASCII case-insensitive match for "none" or one of the non-overridable counter-style names, do nothing and return.
  2. If the value is an ASCII case-insensitive match for any of the predefined counter styles, lowercase it.
  3. Replace the associated rule’s name with an identifier equal to the value.

I suggest:

On setting, the name attribute must replace its value by the result of parsing the given value against <counter-style-name> if this result is valid, otherwise it must not replace its value.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions