diff --git a/source b/source index 419a2fdbd0e..15948b07989 100644 --- a/source +++ b/source @@ -19422,6 +19422,7 @@ interface HTMLDivElement : HTMLElement {};
ping
rel
hreflang
+
hreftranslate
type
referrerpolicy
DOM interface:
@@ -19435,6 +19436,7 @@ interface HTMLAnchorElement : HTMLElement { [CEReactions] attribute DOMString rel; [SameObject, PutForwards=value] readonly attribute DOMTokenList relList; [CEReactions] attribute DOMString hreflang; + [CEReactions] attribute DOMString hreftranslate; [CEReactions] attribute DOMString type; [CEReactions] attribute DOMString text; @@ -19461,8 +19463,10 @@ interface HTMLAnchorElement : HTMLElement {

The target, download, ping, rel, hreflang, type, - and referrerpolicy attributes must be omitted + data-x="attr-hyperlink-hreflang">hreflang, hreftranslate, type, and referrerpolicy attributes must be omitted if the href attribute is not present.

If the itemprop attribute is specified on an a element, @@ -19562,6 +19566,11 @@ interface HTMLAnchorElement : HTMLElement { data-x="dom-a-type">type, must reflect the respective content attributes of the same name.

+

The IDL attribute hreftranslate must + reflect the hrefttranslate + content attribute. If the UA does not support a client side translation service this attribute + must not be supported.

+

The IDL attribute relList must reflect the rel content attribute.

@@ -22533,6 +22542,14 @@ document.body.appendChild(wbr); associated with the resource to determine its language, not metadata included in the link to the resource.

+

The hreftranslate attribute on + a elements that create hyperlinks, if present, + provides the desired translation language of the linked resource. The value must be a valid BCP 47 + language tag. When nativating the anchor, user agents that support client side + translation should invoke the translation engine providing the value of the attribute. + User agents that do not have a client side translation must not support this attribute + so that feature detection of this feature is possible.

+

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 string. User agents must not consider the External { link Language of the linked resource Valid BCP 47 language tag + + hreftranslate + a + Desired language of the linked resource + Valid BCP 47 language tag http-equiv meta