As the title asks,
What does the +
sign mean in <script type="text/javascript+protovis">
?
Are there any good materials?
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.
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.
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.
The type attribute specifies the type of the script. The type attribute identifies the content between the <script> and </script> tags.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With