Heiko Niemann wrote:

> Philippe Lhoste wrote:
> 
>>I beleive you (Heiko Niemann) shouldn't use
>><script type="text/ecmascript"
>>as Mozilla doesn't like it:
>>See https://bugzilla.mozilla.org/show_bug.cgi?id=62485 for the 
> 
> reason why.
> 
>>Basically, text/ecmascript is not an official Mime type, so 
>> Mozilla snobs it...

   As I understand it "text/javascript" is also not an official
Mime type - it just has a longer status as an unofficial mime-type.

>   I have not decided which actually will replace the sample on my 
> main svg-page since I still wonder why Batik requires script type to 
> be set, although 'text/ecmascript' is the default value anyhow. 
> Feedback is welcome.

    Well, this is interesting, according to the SVG specification:

----

<!ATTLIST %SVG.script.qname;
     %SVG.Core.attrib;
     %SVG.XLink.attrib;
     %SVG.External.attrib;
     type %ContentType.datatype; #REQUIRED
 >

Attribute definitions:

type = "content-type"
     Identifies the scripting language for the given 'script' element. 
The value content-type specifies a media type, per [RFC2045]. 
Animatable: no.

----

    The 'type' attribute is required on script elements and there is
no default value (you might be confusing it with 'contentScriptType').
That said it appears that since about April 2002 Batik has not
required type to be set on script elements and it will default it to
'text/ecmascript' if it is not set.



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to