Skip to content

What should SVGStyleElement.type return when type attribute is missing? #996

@lukewarlow

Description

@lukewarlow

Load data:text/html,<style id="style"></style><script>alert(style.type);</script> in Chromium and WebKit you'll see an alert with text/css, in Firefox you'll see an empty string.

Per spec Firefox is correct and WebKit and Chromium are wrong, but I'm wondering which behaviour is actually desirable here? Should WebKit and Chromium update to match Firefox or vice versa?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions