- From: Karl Dubost via GitHub <noreply@w3.org>
- Date: Fri, 22 Aug 2025 02:38:29 +0000
- To: public-svg-issues@w3.org
So probably according to the sentence.
> The semantics and processing of a ‘[style](https://svgwg.org/svg2-draft/styling.html#StyleElement)’ and its attributes must be the same as is defined for the HTML ‘style’ element.
To be consistent,
1. the `SVGStyleElement.type` should return an empty string.
## Firefox
[IDL](https://searchfox.org/firefox-main/source/dom/webidl/SVGStyleElement.webidl)
## Safari
[IDL](https://searchfox.org/wubkat/source/Source/WebCore/svg/SVGStyleElement.idl)
https://searchfox.org/wubkat/rev/f7d01f97426836857c7fae534c3147b49d017ddf/Source/WebCore/svg/SVGStyleElement.cpp#69-73
```cpp
const AtomString& SVGStyleElement::type() const
{
auto& typeValue = getAttribute(SVGNames::typeAttr);
return typeValue.isNull() ? cssContentTypeAtom() : typeValue;
}
```
--
GitHub Notification of comment by karlcow
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/996#issuecomment-3212837637 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 22 August 2025 02:38:30 UTC