[Greasemonkey] e4x

Charles Iliya Krempeaux supercanadian at gmail.com
Fri Feb 10 08:55:23 EST 2006


Hello,

On 2/10/06, Stéphane Payrard <stef at stefp.dyndns.org> wrote:
[...]


The best uptodate ressource I know for firefox is
> http://developer.mozilla.org/ but is pretty short and cryptic on e4x :
> http://developer.mozilla.org/en/docs/e4x
>
> Here what it says :
>
> Note: In Gecko 1.8 based browsers such as Firefox 1.5, E4X is already
> partially enabled for web page authors. To fully enable E4X, the
> <script> element needs to have the MIME type "text/javascript;e4x=1"



That documentation has an error in it.  "text/javascript;e4x=1" is a
"content type".  (As in the HTTP "Content-Type" header.)  Not a MIME type

All MIME types are content types.  However, not all content types are MIME
types.

 (The MIME type in that is "text/javascript".  That ";e4x=1" stuff at the
end, it's not allowed by MIME types.  But content types can have those.
Content types can also have a comment in brackets... if I remember
correctly.)

Incidently, as far as I know, all the HTML elements that take a "type"
attribute expect a content type.  (And not just a MIME type.) Like <link>,
<script>, <stytle>, <a>, etc.



See ya

--
    Charles Iliya Krempeaux, B.Sc.

    charles @ reptile.ca
    supercanadian @ gmail.com

    developer weblog: http://ChangeLog.ca/
___________________________________________________________________________
 Make Television                                http://maketelevision.com/


More information about the Greasemonkey mailing list