Skip to content

[cssom] Consider making CSSStyleRule.selectorText readonly #756

@upsuper

Description

@upsuper

Setter of CSSStyleRule.selectorText is never implemented in Gecko and Edge, Only WebKit (and Blink inheritably) has it.

It doesn't seem to be something highly desired, and when needed, it is also easy to polyfill, and the polyfill isn't supposed to have much performance penalty than what can be done by the browser (rule parsing is cheap, selector matching is unavoidable).

Given these, I suggest we make it readonly in the spec and suggest Blink and WebKit to remove their setter impl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions