diff --git a/source b/source index 7e1898157f1..2d09d82e48a 100644 --- a/source +++ b/source @@ -2734,10 +2734,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
The type
attribute gives the MIME
type of the linked resource. It is purely advisory. The value must be a valid MIME
- type.
For external resource links, the type
attribute is used as a hint to user agents so that they can
@@ -13476,18 +13479,19 @@ interface HTMLLinkElement : HTMLElement {
type
attributeIf the type
attribute is present, then the user agent must
- assume that the resource is of the given type (even if that is not a valid MIME type,
- e.g. the empty string). If the attribute is omitted, but the external resource link
- type has a default type defined, then the user agent must assume that the resource is of that
- type. If the UA does not support the given MIME type for the given link relationship,
- then the UA should not obtain the resource; if the UA
- does support the given MIME type for the given link relationship, then the UA should
- obtain the resource at the appropriate time as specified
- for the external resource link's particular type. If the attribute is omitted, and
- the external resource link type does not have a default type defined, but the user
- agent would obtain the resource if the type was known
- and supported, then the user agent should obtain the
- resource under the assumption that it will be supported.
User agents must not consider the The type
attribute
authoritative — upon fetching the resource, user agents must not use the
type
attribute, if present, gives the
MIME type of the linked resource. It is purely advisory. The value must be a
- valid MIME type. User agents must not consider the valid MIME type string
. User agents must not consider the type
attribute authoritative — upon fetching the
resource, user agents must not use metadata included in the link to the resource to determine its
type.
The type
attribute may be present. If
- present, the value must be a valid MIME type.
The remainder of the requirements depend on whether the parent is a picture
element or a media element:
The type
attribute, if present, gives the
MIME type by which the plugin to instantiate is selected. The value must be a
- valid MIME type. If both the type
attribute and
- the src
attribute are present, then the valid MIME type string. If both the
type
+ attribute and the src
attribute are present, then the type
attribute must specify the same type as the explicit Content-Type metadata of the resource given by the src
attribute.
The type
attribute, if present, specifies the
- type of the resource. If present, the attribute must be a valid MIME type.
At least one of either the data
attribute or the type
attribute must be present.
async
and defer
attributes, but only when the src
attribute is set.
@@ -57308,18 +57312,18 @@ interface HTMLScriptElement : HTMLElement {
Setting the attribute to any other value means that the script is a data
block, which is not processed. None of the script
attributes (except type
itself) have any effect on data blocks. Authors must use
- a valid MIME type that is not a JavaScript MIME type to denote data
- blocks.
The requirement that data blocks
- must be denoted using a valid MIME type is in place to avoid
- potential future collisions. If this specification ever adds additional types of
+ must be denoted using a valid MIME type string is in place to
+ avoid potential future collisions. If this specification ever adds additional types of
script, they will be triggered by setting the type
attribute to something which is not a MIME type, like how
the "module
" value denotes module
- scripts. By using a valid MIME type now, you ensure that your data block will not ever be
- reinterpreted as a different script type, even in future user agents.
Classic scripts and module scripts may either be embedded inline or may be imported from an external file using the @@ -57796,9 +57800,9 @@ o............A....e
classic
".classic
".module
", the
@@ -58338,27 +58342,10 @@ o............A....e
A JavaScript MIME type is a MIME type string that is one - of the following and refers to JavaScript:
- -application/ecmascript
- application/javascript
- application/x-ecmascript
- application/x-javascript
- text/ecmascript
- text/javascript
- text/javascript1.0
- text/javascript1.1
- text/javascript1.2
- text/javascript1.3
- text/javascript1.4
- text/javascript1.5
- text/jscript
- text/livescript
- text/x-ecmascript
- text/x-javascript
- User agents are not required to support JavaScript. This standard needs to be updated
+ if a language other than JavaScript comes along and gets similar wide adoption by web browsers.
+ Until such a time, implementing other languages is in conflict with this standard, given the
+ processing model defined for the script
element.
Servers should use text/javascript
for JavaScript resources. Servers should not
use other JavaScript MIME types for JavaScript
@@ -58367,19 +58354,15 @@ o............A....e
User agents are not required to support JavaScript. This standard needs to be updated if a
- language other than JavaScript comes along and gets similar wide adoption by web browsers. Until
- such a time, implementing other languages is in conflict with this standard, given the processing
- model defined for the script
element.
For external JavaScript resources, MIME type parameters in `Content-Type
` headers
are generally ignored. (In some cases the `charset
` parameter has an
effect.) However, for the script
element's type
attribute they are significant.
For example, scripts with their type
attribute set to "text/javascript; charset=utf-8
" will not be
- evaluated.
Furthermore, again for external JavaScript resources, special considerations apply around
` An explicitly supported JSON type is one for which the user agent is configured to
- use an external application to render the content (either a plugin rendering
- directly in browsingContext, or a separate application), or one for which the user
- agent has dedicated processing rules, or one for which the user agent has a dedicated
+ An explicitly supported XML MIME type is an XML MIME type for which
+ the user agent is configured to use an external application to render the content (either a
+ plugin rendering directly in browsingContext, or a separate
+ application), or one for which the user agent has dedicated processing rules (e.g. a Web browser
+ with a built-in Atom feed viewer would be said to explicitly support the
+ An explicitly supported JSON MIME type is a JSON MIME type for which
+ the user agent is configured to use an external application to render the content (either a
+ plugin rendering directly in browsingContext, or a separate
+ application), or one for which the user agent has dedicated processing rules, or one for which
+ the user agent has a dedicated handler. Setting the document's address: If there is no
override URL, then any The result of extracting a MIME type from
- response's header list
- (ignoring parameters) is not a JavaScript MIME typeContent-Type
` header processing as detailed in the prepare a script
@@ -82244,7 +82227,7 @@ interface Location { // but see also HTML document
section, and then, once they have completed, return.
- text/css
"application/json
, text/json
, and any MIME
- type whose subtype ends with the five characters "+json
".
-
- application/atom+xml
MIME type), or one for which the user agent has a dedicated
handler.Document
created by these steps must have its
URL set to the URL that was
@@ -86912,8 +86892,8 @@ interface ApplicationCache : EventTarget {
For historical reasons, fetching a classic script does not include MIME type checking. In contrast, module scripts will @@ -92640,7 +92620,7 @@ interface MimeType { method.
The type
attribute must return the
- valid MIME type with no parameters describing the MIME type.
The description
and suffixes
attributes must return
user-agent-defined (or, in all likelihood, plugin-defined) strings. In each case, the
@@ -113274,9 +113254,8 @@ if (s = prompt('What is your name?')) {
data-x="attr-script-type">type attribute.
Authors should not specify a value for the type
- attribute on script
elements that is the empty string or an ASCII
- case-insensitive match for a JavaScript MIME type. Instead, they should omit
- the attribute, which has the same effect.
script
elements that is the empty string or a JavaScript MIME type
+ essence match. Instead, they should omit the attribute, which has the same effect.
Authors should not specify a type
attribute on a
style
element. If the attribute is present, its value must be an ASCII
@@ -113334,8 +113313,8 @@ if (s = prompt('What is your name?')) {
case-insensitive match for the string "text/javascript
".
The presence of a type
attribute on a
- script
element if its value is an ASCII case-insensitive match for a
- JavaScript MIME type.
script
element if its value is a JavaScript MIME type essence
+ match.
The presence of a type
attribute on a
style
element if its value is an ASCII case-insensitive match for
@@ -117674,7 +117653,7 @@ interface External {
accept
input
audio/*
, video/*
, or image/*
+ audio/*
, video/*
, or image/*
accept-charset
form
@@ -118511,7 +118490,7 @@ interface External {
a
;
link
type
button
@@ -118525,7 +118504,7 @@ interface External {
object
;
source
type
input
@@ -118544,7 +118523,7 @@ interface External {
type
script
module
"; a valid MIME type that is not a JavaScript MIME type
+ module
"; a valid MIME type string that is not a JavaScript MIME type essence match
typemustmatch
object
@@ -120363,7 +120342,7 @@ INSERT INTERFACES HERE