[svgwg] Issue: Deprecate type attribute on SVGStyleElement? marked as HTML Consistency

dstorey has just labeled an issue for https://github.com/w3c/svgwg as "HTML Consistency":

== Deprecate type attribute on SVGStyleElement? ==
https://svgwg.org/svg2-draft/single-page.html#styling-InterfaceSVGStyleElement

We include the type IDL and content attributes on SVGStyleElement. These are deprecated in HTML as CSS is the only style sheet language, and thus it is redundant (I guess there are XSL style sheets too, but I'm not sure if they're even valid in SVG any longer and they don't use the style element anyway).

We should probably match HTML and deprecate it?

We don't have a deprecated section like HTML, but perhaps we should, as className on SVGElement is deprecated in prose and so is animVal. This would make it clearer that they are legacy and shouldn't be used by authors.

We should put these in their own partials, such as:

partial interface SVGStyleElement {
  attribute DOMString type;
};


See https://github.com/w3c/svgwg/issues/411

Received on Saturday, 5 May 2018 17:29:41 UTC