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 @@ -13336,7 +13339,7 @@ interface HTMLLinkElement : HTMLElement {

The type attribute gives the MIME type of the linked resource. It is purely advisory. The value must be a valid MIME - type.

+ type string.

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 {

Processing the type attribute

If 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.

+ assume that the resource is of the given type (even if that is not a valid MIME type + string, 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 type attribute authoritative — upon fetching the resource, user agents must not use the

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.

@@ -25393,7 +25397,7 @@ interface HTMLSourceElement : HTMLElement { elements. It does not represent anything on its own.

The type attribute may be present. If - present, the value must be a valid MIME type.

+ present, the value must be a valid MIME type string.

The remainder of the requirements depend on whether the parent is a picture element or a media element:

@@ -30246,8 +30250,8 @@ interface HTMLEmbedElement : HTMLElement {

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.

@@ -30652,7 +30656,7 @@ interface HTMLObjectElement : HTMLElement { java will run, and it will ignore the allowScriptAccess thing -->

The type attribute, if present, specifies the - type of the resource. If present, the attribute must be a valid MIME type.

+ type of the resource. If present, the attribute must be a valid MIME type string.

At least one of either the data attribute or the type attribute must be present.

@@ -47520,7 +47524,7 @@ ldh-str = < as defined in Script top-level production. Classic scripts are affected by the 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.

  • + a valid MIME type string that is not a JavaScript MIME type essence + match 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.

    + scripts. By using a valid MIME type string 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