HighDots Forums  

Wozu Content-Script-Type?

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Wozu Content-Script-Type? in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Adam
 
Posts: n/a

Default Wozu Content-Script-Type? - 07-30-2003 , 03:58 AM






Moin,

mit der Angabe

<meta http-equiv="Content-Script-Type" content="text/javascript" />

kann ich JavaScript als Default-Scriptsprache in meiner HTML-Datei
festlegen.
Wozu aber dient diese Angabe genau, schliesslich lege ich doch mit dem
type-Attribut im script-Bereich den Script-Typ fest. Ist diese
meta-Angabe nur überflüssiger overhead?


Thomas


Reply With Quote
  #2  
Old   
Dietmar Meier
 
Posts: n/a

Default Re: Wozu Content-Script-Type? - 07-30-2003 , 05:30 AM






Thomas Adam wrote:

Quote:
mit der Angabe

meta http-equiv="Content-Script-Type" content="text/javascript" /

kann ich JavaScript als Default-Scriptsprache in meiner HTML-Datei
festlegen.
Wozu aber dient diese Angabe genau, schliesslich lege ich doch mit dem
type-Attribut im script-Bereich den Script-Typ fest. Ist diese
meta-Angabe nur überflüssiger overhead?
Nein, denn es gibt nicht nur Skriptbereiche, sondern auch Skriptcode
in Eventhandlern. Ohne obige Meta-Angabe müssen diese vom Brauser
nicht einmal angefasst werden:

,-----[ http://www.w3.org/TR/html4/interact/....html#h-18.2.2 ]-----
Quote:
Documents that do not specify default scripting language information
and that contain elements that specify an intrinsic event script are
incorrect. User agents may still attempt to interpret incorrectly
specified scripts but are not required to. Authoring tools should
generate default scripting language information to help authors avoid
creating incorrect documents.
ciao, dhgm



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.