[svgwg] What should SVGStyleElement.type return when type attribute is missing? (#996)

lukewarlow has just created a new issue for https://github.com/w3c/svgwg:

== What should SVGStyleElement.type return when type attribute is missing? ==
Load data:text/html,<svg><style id="style"></style></svg><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?

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/996 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 19 August 2025 14:27:59 UTC