http://www.perlmonks.org?node_id=710194


in reply to Re^5: [OT] Perl / Computer Science Science Fair Projects
in thread [OT] Perl / Computer Science Science Fair Projects

If I wish to inline some JavaScript in a tag, there is (as far as I know) absolutely no way for me to say that I want features turned on.

Specifying the default scripting language, from the HTML spec.

(I'm not disagreeing with anything you said. I just thought you might be interested in this.)

  • Comment on Re^6: [OT] Perl / Computer Science Science Fair Projects

Replies are listed 'Best First'.
Re^7: [OT] Perl / Computer Science Science Fair Projects
by tilly (Archbishop) on Sep 09, 2008 at 21:37 UTC
    Nice looking spec. I just tried it in my Firefox 2. Based on the advice there I would expect one of the following two to cause script tags to default to version 1.7 but neither does:
    <META http-equiv="Content-Script-Type" content="application/javascript;version=1.7"> <META http-equiv="Content-Script-Type" content="text/javascript;version=1.7">
    (Either content version will work in a type tag to a script.)

    Given that failure, I am not going to rewrite my code sample to be inlined in a script tag. I'm just going to assume that it won't work.