Re: dropping contentStyleType and contentScriptType

On May 19, 2012, at 6:00 AM, Cameron McCormack wrote:

> In SVG 1.1, the contentStyleType="" attribute can be placed on an <svg> 
> element to indicate the styling language in use in any style="" 
> attributes in that subtree.  The spec says:
> 
>   Since the only widely deployed language used for inline styling (in
>   style elements and style attributes) is CSS, and since that is
>   already the default language if contentStyleType is omitted, in
>   practice contentStyleType is not well supported in user agents. XSL
>   style sheets are typically external. If a new style sheet language
>   becomes popular, it might not use style attributes and could easily
>   declare which language is in use with the type attribute on the style
>   element.
> 
>   The use of contentStyleType is therefore deprecated; new content
>   should not use it. Future versions of the SVG specification may
>   remove contentStyleType.
> 
> I propose we do that now.
> 
> Similarly you can place contentScriptType="" on <svg> to indicate the 
> scripting language in any event handler attributes.  There's no wording 
> currently about dropping this attribute, but I have never seen anyone 
> use it to specify anything other than JavaScript, and HTML also does not 
> support a feature like this.  I propose we drop it too, and assume 
> JavaScript.
> 
I agree.

Dirk

Received on Saturday, 19 May 2012 06:03:42 UTC