diff --git a/source b/source index 32b9fa5afbb..5f58427db5a 100644 --- a/source +++ b/source @@ -1789,6 +1789,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
Reset the form owner of the form-associated element.
If insertedNode is an Element
that is not on the
+ stack of open elements of an HTML parser, then
+ process internal resource links given insertedNode's
+ node document.
The removing steps for the HTML Standard, given
@@ -15133,6 +15138,7 @@ interface HTMLLinkElement : HTMLElement {
data-x="concept-supported-tokens">supported tokens are
alternate
,
dns-prefetch
,
+ expect
,
icon
,
manifest
,
modulepreload
,
@@ -15386,9 +15392,10 @@ interface HTMLLinkElement : HTMLElement {
The blocking
- attribute is a blocking attribute. It is used by link type stylesheet
, and it must only be specified on link elements
- that have a rel
attribute containing that keyword.
stylesheet
and expect
, and it must only be specified on link elements
+ that have a rel
attribute containing those keywords.
Links are a conceptual construct, created by a
, area
,
form
, and link
elements, that represent
a connection between two resources, one of which is the current Document
. There are
- two kinds of links in HTML:
These are links to other resources that are generally exposed to the user by the user agent so that the user can cause the user agent to navigate to those resources, e.g. to visit them in a browser or download them.
These are links to resources within the current document, used to give those resources + special meaning or behavior.
For link
elements with an href
attribute and a
@@ -25856,6 +25868,15 @@ document.body.appendChild(wbr);
expect
external
expect
"The expect
keyword may be used with link
+ elements. This keyword creates an internal resource
+ link.
The expect
keyword indicates that an element with a certain
+ ID is expected in this document, and the link might
+ block rendering until that element's closing tag is parsed.
There is no default type for resources given by the expect
+ keyword.
Whenever the following conditions occur for a link
element el:
the expect
internal resource link is created
+ on el that is already browsing-context connected;
an expect
internal resource link has been
+ created on el and el becomes
+ browsing-context connected;
an expect
internal resource link has been
+ created on el, el is already browsing-context connected, and
+ el's href
attribute is set, changed, or removed;
+ or
an expect
internal resource link has been
+ created on el, el is already browsing-context connected, and
+ el's media
attribute is set, changed, or
+ removed,
then process el.
+ +To process internal resource link given a link
element el,
+ run these steps:
Let doc be el's node document.
Let url be the result of encoding-parsing a URL given
+ el's href
attribute's value, relative to
+ doc.
If this fails, or if url does not equal doc's + URL with exclude fragments set to false, then unblock rendering on + el and return.
Let indicatedElement be the result of selecting the indicated part given doc + and url.
If all of the following are true:
+ +doc's current document readiness is "loading
";
el creates an internal resource link;
el is browsing-context connected;
el's rel
attribute
+ contains expect
;
el is potentially render-blocking;
el's media
attribute
+ matches the environment; and
indicatedElement is not an element, or is on a
+ stack of open elements of an HTML parser whose associated
+ Document
is doc,
then block rendering on el.
+Otherwise, unblock rendering on el.
To process internal resource links given a Document
doc:
For each expect
link
element link in
+ doc's render-blocking element set, process link.
The following attribute change steps, given
+ element, localName, value, and namespace, are used to
+ ensure expect
link
elements respond to dynamic id
and name
changes:
If namespace is not null, then return.
If element is in a stack of open elements of an + HTML parser, then return.
If any of the following is true:
+ +localName is id
; or
localName is name
and element is an a
element,
then process internal resource links given element's + node document.
+external
":target
pseudo-class and is updated by the
above algorithm. It is initially null.
- For an HTML document document, the following - processing model must be followed to determine its indicated part:
+For an HTML document document, its + indicated part is the result + of selecting the indicated part given + document and document's URL.
+ +To select the indicated part given a Document
document and a
+ URL url:
Let fragment be document's URL's If document's URL does not equal
+ url with exclude fragments set to
+ true, then return null.
Let fragment be url's fragment.
If fragment is the empty string, then return the special value top of the @@ -122316,6 +122469,10 @@ dictionary StorageEventInit : EventInit { the stack of open elements has only one element in it (fragment case); otherwise, the adjusted current node is the current node.
+When the current node is removed from the stack of open elements, + process internal resource links given the current node's + node document.
+Elements in the stack of open elements fall into the following categories: