Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<script type="text/javascript+protovis"> what does + sign mean?

As the title asks,

What does the + sign mean in <script type="text/javascript+protovis">?

Are there any good materials?

like image 709
jaeyong Avatar asked Jul 31 '12 07:07

jaeyong


People also ask

What does the script tag mean?

The <script> tag is used to embed a client-side script (JavaScript). The <script> element either contains scripting statements, or it points to an external script file through the src attribute. Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.

What does type text/JavaScript mean?

The type attribute specifies the scripting language of the element's contents and overrides the default scripting language. The scripting language is specified as a content type (e.g., "text/javascript"). Authors must supply a value for this attribute. There is no default value for this attribute.

How do you check if a script is loaded or not?

Pass the URL of JavaScript file in a <script> tag. Set the onload parameter, Trigger alert if script loaded. If not then check for loaded variable, if it is equal to false, then script not loaded.

What is type attribute in script tag?

The type attribute specifies the type of the script. The type attribute identifies the content between the <script> and </script> tags.


1 Answers

Shamelessly stolen from a different answer here.

Pattern for naming mimetypes is as follows:

A dot hierarchically separates multiple "elements" (for instance, config is child of iptv, that is child of nokia, that is child of vnd).

A hyphen separates composite words (as in google-earth and openxmlformats-officedocument).

A plus sign serves to further specify the serializing format (+json and +xml in these examples).

The x- prefix should be used for MIME types not registered with IANA (and, thus, not shown on that list).

Also, text/javascript+protovis is not equivalent to text/javascript. The two could be parsed differently.

like image 137
Anirudh Ramanathan Avatar answered Oct 04 '22 05:10

Anirudh Ramanathan