From c49398f8050847066ee073a23a93529f13363ae5 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Tue, 20 Oct 2015 13:35:00 +0200 Subject: [PATCH] Obsolete hreflang and type content attributes on Fixes #232. --- source | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/source b/source index 562438ba1a4..68ae2bbff00 100644 --- a/source +++ b/source @@ -11895,8 +11895,8 @@ gave me some of the songs they wrote. I love sharing my music.</p>

The hreflang attribute on the link element has the same semantics as the hreflang attribute on a and - area elements.

+ data-x="attr-hyperlink-hreflang">hreflang attribute on the a + element.

The type attribute gives the MIME type of the linked resource. It is purely advisory. The value must be a valid MIME @@ -20376,12 +20376,12 @@ document.body.appendChild(wbr); being a hyperlink between the two.

The hreflang attribute on - a and area elements that create hyperlinks, if present, gives the language of the linked resource. It is - purely advisory. The value must be a valid BCP 47 language tag. - User agents must not consider this attribute authoritative — upon - fetching the resource, user agents must use only language information associated with the resource - to determine its language, not metadata included in the link to the resource.

+ a elements that create hyperlinks, if present, gives + the language of the linked resource. It is purely advisory. The value must be a valid BCP 47 + language tag. User agents must not consider this attribute + authoritative — upon fetching the resource, user agents must use only language information + associated with the resource to determine its language, not metadata included in the link to the + resource.

The type attribute, if present, gives the MIME type of the linked resource. It is purely advisory. The value must be a @@ -21550,11 +21550,11 @@ interface HTMLHyperlinkElementUtils {

-

The first link, a, or area element in the document (in - tree order) with the alternate keyword used with the The first link or a element in the document (in tree + order) with the alternate keyword used with the type attribute set to the value application/rss+xml or the value application/atom+xml must - be treated as the default syndication feed for the purposes of feed autodiscovery.

+ data-x="">application/rss+xml or the value application/atom+xml + must be treated as the default syndication feed for the purposes of feed autodiscovery.

The following link element gives the syndication @@ -36646,8 +36646,6 @@ dictionary TrackEventInit : EventInit {

download
ping
rel
-
hreflang
-
type
DOM interface:
interface HTMLAreaElement : HTMLElement {
@@ -36659,7 +36657,6 @@ dictionary TrackEventInit : EventInit {
   [PutForwards=value] readonly attribute DOMSettableTokenList ping;
   attribute DOMString rel;
   readonly attribute DOMTokenList relList;
-  // hreflang and type are not reflected
 };
 HTMLAreaElement implements HTMLHyperlinkElementUtils;
@@ -36773,17 +36770,15 @@ dictionary TrackEventInit : EventInit { area element, as described in the next section, the href, target, download, and ping - attributes decide how the link is followed. The rel, hreflang, and type - attributes may be used to indicate to the user the likely nature of the target resource before the + attributes decide how the link is followed. The rel + attribute may be used to indicate to the user the likely nature of the target resource before the user follows the link.

The target, download, ping, - rel, hreflang, and type + and rel attributes must be omitted if the href attribute is not present.

@@ -110697,6 +110692,12 @@ if (s = prompt('What is your name?')) {
accept on form elements

Use the accept attribute directly on the input elements instead.

+
hreflang on area + elements
+
type on area elements
+

These attributes do not do anything useful, and for historical reasons there are no + corresponding IDL attributes on area elements. Omit them altogether.

+
nohref on area elements

Omitting the href attribute is sufficient; the download; ping; rel; - hreflang; - type HTMLAreaElement @@ -115297,7 +115296,6 @@ if (s = prompt('What is your name?')) { hreflang a; - area; link Language of the linked resource Valid BCP 47 language tag @@ -115796,7 +115794,6 @@ if (s = prompt('What is your name?')) { type a; - area; link Hint for the type of the referenced resource Valid MIME type