diff --git a/source b/source index 6188a46cc0c..a02b4f19405 100644 --- a/source +++ b/source @@ -3759,10 +3759,16 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
ServiceWorker
interfaceServiceWorkerContainer
interfacetype
sizes
referrerpolicy
scope
usecache
workertype
title
attribute has special semantics on this element.alternate
,
dns-prefetch
,
icon
,
+ next
,
pingback
,
preconnect
,
prefetch
,
preload
,
prerender
,
search
,
- stylesheet
, and
- next
.
+ serviceworker
, and
+ stylesheet
.
rel
's supported
tokens must only include the tokens from this list that the user agent implements the
processing model for.
@@ -12622,7 +12635,30 @@ interface HTMLLinkElement : HTMLElement {
The apple-touch-icon
keyword is a registered extension to the predefined set of link types, but user
- agents are not required to support it in any way.
The scope
attribute specifies the scope
+ url for a service worker registration. If the attribute is present, the value
+ must be a valid URL potentially surrounded by spaces. The attribute must not be
+ specified on link
elements that do not have a rel
+ attribute that contains the serviceworker
keyword.
The workertype
attribute is an
+ enumerated attribute that specifies the service worker type for a
+ service worker registration. The attribute's keywords are classic
and module
, which map to the respective states
+ classic and module. The missing value default is the classic
+ state. The attribute must not be specified on link
elements that do not have a rel
attribute that contains the serviceworker
keyword.
The usecache
attribute is a boolean
+ attribute which sets use cache to true for a service worker
+ registration. The attribute must not be specified on link
elements that do not
+ have a rel
attribute that contains the serviceworker
keyword.
media
, hreflang
, type
, nonce
,
- integrity
and sizes
each must reflect the respective content
+ integrity
, sizes
, and scope
each must reflect the respective content
attributes of the same name.
The crossOrigin
IDL attribute must
@@ -12668,6 +12705,13 @@ interface HTMLLinkElement : HTMLElement {
reflect the referrerpolicy
content attribute, limited to only known values.
The workerType
IDL attribute must
+ reflect the workertype
content
+ attribute.
The useCache
IDL attribute must
+ reflect the usecache
content attribute.
Other specifications may add HTML link types as defined in Other link types, with the following additional requirements:
@@ -22702,6 +22746,14 @@ interface HTMLHyperlinkElementUtils {serviceworker
stylesheet
search
link type to enable user agents to autodiscover search
interfaces.
+ serviceworker
"The serviceworker
keyword may be used with
+ link
elements. This keyword creates an external
+ resource link that is used to declare a service worker registration and its
+ script url, scope url, type,
+ and use cache setting.
User agents must implement the processing model for link
-element
+ serviceworker links described in Service
+ Workers, using the href
, scope
, workertype
, and
+ usecache
attributes.
stylesheet
"col
";
"rowgroup
";
"colgroup
"
+ scope
+ link
+ rel
="serviceworker
")
+ selected
option
@@ -117179,6 +117249,11 @@ interface External {
object
type
attribute and the Content-Type value need to match for the resource to be used
usecache
+ link
+ rel
="serviceworker
")
+ usemap
img
;
@@ -117228,6 +117303,11 @@ interface External {
video
workertype
+ link
+ rel
="serviceworker
")
+ classic
"; "module
"
wrap
textarea