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
  • control
  • handle fetch
  • match service worker registration
  • +
  • scope url
  • +
  • script url
  • service worker
  • service worker client
  • +
  • service worker registration
  • +
  • service worker type
  • +
  • serviceworker link
  • ServiceWorker interface
  • ServiceWorkerContainer interface
  • +
  • use cache
  • @@ -12248,6 +12254,9 @@ interface HTMLBaseElement : HTMLElement {
    type
    sizes
    referrerpolicy
    +
    scope
    +
    usecache
    +
    workertype
    Also, the title attribute has special semantics on this element.
    DOM interface:
    @@ -12265,6 +12274,9 @@ interface HTMLLinkElement : HTMLElement { [CEReactions] attribute DOMString type; [CEReactions, SameObject, PutForwards=value] readonly attribute DOMTokenList sizes; [CEReactions] attribute DOMString referrerPolicy; + [CEReactions] attribute USVString scope; + [CEReactions] attribute WorkerType workerType; + [CEReactions] attribute boolean useCache; }; HTMLLinkElement implements LinkStyle;
    @@ -12295,14 +12307,15 @@ interface HTMLLinkElement : HTMLElement { 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.

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

    + +
    @@ -12653,8 +12689,9 @@ interface HTMLLinkElement : HTMLElement { 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 { Gives a link to a resource that can be used to search through the current document and its related pages. + + serviceworker + Hyperlink + not allowed + · + Declares a service worker registration. + + stylesheet External Resource @@ -23325,6 +23377,19 @@ interface HTMLHyperlinkElementUtils { the search link type to enable user agents to autodiscover search interfaces.

    +
    Link type "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.

    Link type "stylesheet"
    @@ -116978,6 +117043,11 @@ interface External { "col"; "rowgroup"; "colgroup" + + scope + link + A scope url service worker registration (for rel="serviceworker") + Valid URL potentially surrounded by spaces selected option @@ -117179,6 +117249,11 @@ interface External { object Whether the type attribute and the Content-Type value need to match for the resource to be used Boolean attribute + + usecache + link + Whether to set use cache to true for a service worker registration (for rel="serviceworker") + Boolean attribute usemap img; @@ -117228,6 +117303,11 @@ interface External { video Horizontal dimension Valid non-negative integer + + workertype + link + A service worker type for a service worker registration (for rel="serviceworker") + "classic"; "module" wrap textarea