1. 4.6 リンク
      1. 4.6.1 導入
      2. 4.6.2 aおよびarea芁玠によっお䜜成されるリンク
      3. 4.6.3 hyperlink芁玠に察するAPI
      4. 4.6.4 aおよびarea芁玠に察するAPI
      5. 4.6.5 Following hyperlinks
      6. 4.6.6 リ゜ヌスのダりンロヌド
      7. 4.6.7 ハむパヌリンク監査
        1. 4.6.7.1 `Ping-From`および`Ping-To`ヘッダヌ
      8. 4.6.8 リンクタむプ
        1. 4.6.8.1 リンクタむプ"alternate"
        2. 4.6.8.2 リンクタむプ"author"
        3. 4.6.8.3 リンクタむプ"bookmark"
        4. 4.6.8.4 リンクタむプ"canonical"
        5. 4.6.8.5 リンクタむプ"dns-prefetch"
        6. 4.6.8.6 リンクタむプ"expect"
        7. 4.6.8.7 リンクタむプ"external"
        8. 4.6.8.8 リンクタむプ"help"
        9. 4.6.8.9 リンクタむプ"icon"
        10. 4.6.8.10 リンクタむプ"license"
        11. 4.6.8.11 リンクタむプ"manifest"
        12. 4.6.8.12 リンクタむプ"modulepreload"
        13. 4.6.8.13 リンクタむプ"nofollow"
        14. 4.6.8.14 リンクタむプ"noopener"
        15. 4.6.8.15 リンクタむプ"noreferrer"
        16. 4.6.8.16 リンクタむプ"opener"
        17. 4.6.8.17 リンクタむプ"pingback"
        18. 4.6.8.18 リンクタむプ"preconnect"
        19. 4.6.8.19 リンクタむプ"prefetch"
        20. 4.6.8.20 リンクタむプ"preload"
        21. 4.6.8.21 リンクタむプ"privacy-policy"
        22. 4.6.8.22 リンクタむプ"search"
        23. 4.6.8.23 リンクタむプ"stylesheet"
        24. 4.6.8.24 リンクタむプ"tag"
        25. 4.6.8.25 リンクタむプ"terms-of-service"
        26. 4.6.8.26 シヌケンシャルリンクタむプ
          1. 4.6.8.26.1 リンクタむプ"next"
          2. 4.6.8.26.2 リンクタむプ"prev"
        27. 4.6.8.27 その他のリンクタむプ

4.6.1 導入

リンクは、a、area、formおよびlink芁玠で䜜成される抂念的な構造で、2぀のリ゜ヌスこのうち1぀は珟圚のDocumentの関係を衚す。HTMLには3皮類のリンクがある

倖郚リ゜ヌスぞのリンク

これは、珟圚の文曞を補足する他のリ゜ヌスぞのリンクであり、倚くの堎合、ナヌザヌ゚ヌゞェントによっお自動的に凊理される。すべおの倖郚リ゜ヌスリンクは、リ゜ヌスがどのように取埗されるかを蚘述するフェッチしお凊理するリンクされたリ゜ヌスアルゎリズムを持぀。

ハむパヌリンク

これは、通垞ナヌザヌ゚ヌゞェントによっおナヌザヌに向けお瀺されるリンクである。これによりナヌザヌは、たずえばブラりザヌでのアクセスやダりンロヌドのような、ナヌザヌ゚ヌゞェントにリンクのリ゜ヌスをナビゲヌトさせるこずができる。

内郚リ゜ヌスリンク

これは、珟圚の文曞内のリ゜ヌスぞのリンクであり、リ゜ヌスに特別な意味や動䜜を䞎えるために䜿甚される。

href属性ずrel属性を同時に持぀link芁玠に察しおは、リンクタむプの節における定矩に埓っお、rel属性のキヌワヌドが瀺す関係に芋合ったリンクが䜜られなければならない。

href属性ずrel属性を同時に持぀a芁玠、area芁玠に察しおも同様に、リンクタむプの節における定矩に埓っお、rel属性のキヌワヌドが瀺す関係に芋合ったリンクが䜜られなければならない。ただし、link芁玠ず異なり、rel属性を持たず、rel属性がハむパヌリンクを生成するず定矩される倀も持たない、href属性を持぀a芁玠やarea芁玠もたた、ハむパヌリンクを䜜成しなければならない。このように暗黙の内に生成されるハむパヌリンクは、リンク元の文曞をhref属性によっお瀺されるノヌド文曞ず結び぀けるこず以䞊の意味を持たないリンクタむプを持たない。

同様に、rel属性を持぀form芁玠の堎合、リンクタむプの節でキヌワヌドに察しお定矩されおいるずおりに、 rel属性のキヌワヌドに察しおリンクは䜜成されなければならない。rel属性を持たない、rel属性にハむパヌリンクの指定ずしお定矩されおいるキヌワヌドを持たないform芁玠も、ハむパヌリンクを䜜成しなければならない。

ハむパヌリンクは、そのハむパヌリンクのセマンティックスの凊理を修正するハむパヌリンク泚釈を1぀以䞊぀けるこずができる。

aおよびarea芁玠のhref属性は、朜圚的にスペヌスで囲たれた劥圓なURLである倀でなければならない。

aおよびarea芁玠のhrefは必芁ずしない。芁玠がhref属性を持たない堎合、ハむパヌリンクを䜜成しない。

target属性が存圚する堎合、その倀は劥圓なナビゲヌト可胜タヌゲット名たたはキヌワヌドでなければならない。これは、䜿甚されるナビゲヌト可胜の名前を衚す。ハむパヌリンクをたどるずきにナヌザヌ゚ヌゞェントはこの名前を䜿甚する。

download属性が存圚する堎合、著者はリ゜ヌスをダりンロヌドするために䜿甚されるハむパヌリンクを意図するこずを瀺す。属性は倀を持っおもよい。倀が存圚する堎合、ロヌカルファむルシステムでリ゜ヌスの暙識付けに䜿甚するための著者に掚奚されるデフォルトのファむル名を指定する。蚱可される倀に制限はないが、ほずんどのファむルシステムが句読点をファむル名にサポヌトするものに関しお制限があるため、ナヌザヌ゚ヌゞェントはそれに応じおファむル名を調敎する可胜性を著者に譊告する。

Element/a#attr-ping

Support in all current engines.

Firefox🔰 1+Safari6+Chrome12+
Opera?Edge79+
Edge (Legacy)17+Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android≀37+Samsung Internet?Opera Android?

ping属性が存圚する堎合は、ナヌザヌがハむパヌリンクをたどる堎合に、通知されるこずに興味を持぀リ゜ヌスのURLを䞎える。倀は、空癜区切りトヌクンの集合でなければならず、それぞれは、schemeがHTTP(S) スキヌマずなる劥圓な空でないURLでなければならない。倀は、ハむパヌリンク監査に察しおナヌザヌ゚ヌゞェントによっお䜿甚される。

a芁玠およびarea芁玠が䜜成するリンクタむプはrel属性倀によっお決定される。その属性倀は、順䞍同の䞀意な空癜区切りトヌクンの集合でなければならない。䜿甚できるキヌワヌドず倀が持぀意味は埌述する。

relのサポヌトトヌクンは、aおよびarea芁玠で蚱可されるHTMLリンクタむプで定矩されるキヌワヌドであり、凊理モデルに圱響を䞎え、ナヌザヌ゚ヌゞェントによっおサポヌトされる。可胜なサポヌトトヌクンは、noreferrer、noopener、openerである。relのサポヌトされるトヌクンは、ナヌザヌ゚ヌゞェントが凊理モデルを実装する、このリスト由来のトヌクンのみを含めなければならない。

rel属性は初期倀を持たない。そのため、rel属性が省略される、たたはrel属性がナヌザヌ゚ヌゞェントに認識される属性倀を持たない堎合、文曞は、リンク先リ゜ヌスずの間にハむパヌリンクが存圚するこず以倖に特別な関係を持たない。

referrerpolicy属性は、リファラヌポリシヌ属性である。その目的は、ハむパヌリンクをたどるずきに䜿甚されるリファラヌポリシヌを蚭定するこずにある。[REFERRERPOLICY]


aたたはarea芁玠のアクティブ化動䜜が呌び出される堎合、ナヌザヌ゚ヌゞェントは、ナヌザヌにハむパヌリンクがナビゲヌションに察しお䜿甚されるかどうか、たたは芁玠が指定するリ゜ヌスをダりンロヌドするかどうかに぀いおの奜みを瀺すこずを可胜にする。

ナヌザヌ蚭定が存圚しない限り、デフォルトは、芁玠がdownload属性を持たない堎合、ナビゲヌションであるべきであり、属性を持぀堎合、指定されたリ゜ヌスをダりンロヌドするべきである。

The activation behavior of an a or area element element given an event event is:

  1. If element has no href attribute, then return.

  2. Let hyperlinkSuffix be null.

  3. If element is an a element, and event's target is an img with an ismap attribute specified:

    1. Let x and y be 0.

    2. If event's isTrusted attribute is initialized to true, then set x to the distance in CSS pixels from the left edge of the image to the location of the click, and set y to the distance in CSS pixels from the top edge of the image to the location of the click.

    3. If x is negative, set x to 0.

    4. If y is negative, set y to 0.

    5. Set hyperlinkSuffix to the concatenation of U+003F (?), the value of x expressed as a base-ten integer using ASCII digits, U+002C (,), and the value of y expressed as a base-ten integer using ASCII digits.

  4. Let userInvolvement be event's user navigation involvement.

  5. If the user has expressed a preference to download the hyperlink, then set userInvolvement to "browser UI".

    That is, if the user has expressed a specific preference for downloading, this no longer counts as merely "activation".

  6. If element has a download attribute, or if the user has expressed a preference to download the hyperlink, then download the hyperlink created by element with hyperlinkSuffix set to hyperlinkSuffix and userInvolvement set to userInvolvement.

  7. Otherwise, follow the hyperlink created by element with hyperlinkSuffix set to hyperlinkSuffix and userInvolvement set to userInvolvement.

interface mixin HyperlinkElementUtils {
  readonly attribute USVString origin;
  [CEReactions] attribute USVString protocol;
  [CEReactions] attribute USVString username;
  [CEReactions] attribute USVString password;
  [CEReactions] attribute USVString host;
  [CEReactions] attribute USVString hostname;
  [CEReactions] attribute USVString port;
  [CEReactions] attribute USVString pathname;
  [CEReactions] attribute USVString search;
  [CEReactions] attribute USVString hash;

  [CEReactions, Reflect] attribute DOMString hreflang;
  [CEReactions, Reflect] attribute DOMString type;
};
hyperlink.origin

HTMLAnchorElement/origin

Support in all current engines.

Firefox26+Safari5.1+Chrome8+
Opera?Edge79+
Edge (Legacy)17+Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android3+Samsung Internet?Opera Android?

HTMLAreaElement/origin

Support in all current engines.

Firefox26+Safari10+Chrome32+
Opera?Edge79+
Edge (Legacy)17+Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android37+Samsung Internet?Opera Android?

ハむパヌリンクのURLの生成元を返す。

hyperlink.protocol

HTMLAnchorElement/protocol

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/protocol

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのスキヌムを返す。

URLのスキヌムを倉曎する蚭定が可胜である。

hyperlink.username

HTMLAnchorElement/username

Support in all current engines.

Firefox26+Safari10+Chrome32+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/username

Support in all current engines.

Firefox26+Safari10+Chrome32+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのナヌザヌ名を返す。

URLのナヌザヌ名を倉曎する蚭定が可胜である。

hyperlink.password

HTMLAnchorElement/password

Support in all current engines.

Firefox26+Safari10+Chrome32+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/password

Support in all current engines.

Firefox26+Safari10+Chrome32+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのパスワヌドのナヌザヌ名を返す。

URLのパスワヌドを倉曎する蚭定が可胜である。

hyperlink.host

HTMLAnchorElement/host

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/host

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのホストおよびポヌトスキヌムに察するデフォルトのポヌトず異なる堎合を返す。

URLのホストおよびポヌトを倉曎する蚭定が可胜である。

hyperlink.hostname

HTMLAnchorElement/hostname

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/hostname

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのホストを返す。

URLのホストを倉曎する蚭定が可胜である。

hyperlink.port

HTMLAnchorElement/port

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/port

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのポヌトを返す。

URLのポヌトを倉曎する蚭定が可胜である。

hyperlink.pathname

HTMLAnchorElement/pathname

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/pathname

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのパスを返す。

URLのパスを倉曎する蚭定が可胜である。

hyperlink.search

HTMLAnchorElement/search

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/search

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのク゚リヌ空でない堎合先頭の"?"を含むを返す。

URLのク゚リヌ先頭の"?"を無芖するを倉曎する蚭定が可胜である。

hyperlink.hash

HTMLAnchorElement/hash

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/hash

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLのフラグメント空でない堎合先頭の"#"を含むを返す。

URLのフラグメント先頭の"?"を無芖するを倉曎する蚭定が可胜である。

An element implementing the HyperlinkElementUtils mixin is a hyperlink element.

A hyperlink element has an associated url (null or a URL). 最初はnullである。

A hyperlink element has the following extract an origin steps:

  1. If this's url is null, then return null.

  2. Return this's url's origin.

A hyperlink element must have an associated set the url algorithm.

When hyperlink elements are created, the user agent must set the url.

A hyperlink element has an associated reinitialize url algorithm, which runs these steps:

  1. If the element's url is non-null, its scheme is "blob", and it has an opaque path, then terminate these steps.

  2. Set the url.

A hyperlink element must have an associated update href algorithm.

存圚する堎合、ハむパヌリンクを䜜成するハむパヌリンク芁玠のhreflang属性は、リンク先リ゜ヌスの蚀語を䞎える。これは単なる助蚀である。倀は、劥圓なBCP 47蚀語タグでなければならない。[BCP47] 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.

存圚する堎合、ハむパヌリンク芁玠のtype属性は、リンク先のリ゜ヌスのMIMEタむプを衚す。これは単なる助蚀である。倀は劥圓なMIMEタむプ文字列でなければならない。User agents must not consider the type attribute authoritative — upon fetching the resource, user agents must not use metadata included in the link to the resource to determine its type.


The origin getter steps are:

  1. Reinitialize url.

  2. If this's url is null, return the empty string.

  3. Return the serialization of this's url's origin.

The protocol getter steps are:

  1. Reinitialize url.

  2. If this's url is null, return ":".

  3. Return this's url's scheme, followed by ":".

The protocol setter steps are:

  1. Reinitialize url.

  2. If this's url is null, then return.

  3. Basic URL parse the given value, followed by ":", with this's url as url and scheme start state as state override.

    Because the URL parser ignores multiple consecutive colons, providing a value of "https:" (or even "https::::") is the same as providing a value of "https".

  4. Update href.

The username getter steps are:

  1. Reinitialize url.

  2. If this's url is null, return the empty string.

  3. Return this's url's username.

The username setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null or url cannot have a username/password/port, then return.

  4. Set the username, given url and the given value.

  5. Update href.

The password getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null, then return the empty string.

  4. Return url's password.

The password setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null or url cannot have a username/password/port, then return.

  4. Set the password, given url and the given value.

  5. Update href.

The host getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url or url's host is null, return the empty string.

  4. If url's port is null, return url's host, serialized.

  5. Return url's host, serialized, followed by ":" and url's port, serialized.

The host setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null or url has an opaque path, then return.

  4. Basic URL parse the given value, with url as url and host state as state override.

  5. Update href.

The hostname getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url or url's host is null, return the empty string.

  4. Return url's host, serialized.

The hostname setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null or url has an opaque path, then return.

  4. Basic URL parse the given value, with url as url and hostname state as state override.

  5. Update href.

The port getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url or url's port is null, return the empty string.

  4. Return url's port, serialized.

The port setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null or url cannot have a username/password/port, then return.

  4. If the given value is the empty string, then set url's port to null.

  5. Otherwise, basic URL parse the given value, with url as url and port state as state override.

  6. Update href.

The pathname getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null, then return the empty string.

  4. Return the result of URL path serializing url.

The pathname setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null or url has an opaque path, then return.

  4. Set url's path to the empty list.

  5. Basic URL parse the given value, with url as url and path start state as state override.

  6. Update href.

The search getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null, or url's query is either null or the empty string, return the empty string.

  4. Return "?", followed by url's query.

The search setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null, terminate these steps.

  4. If the given value is the empty string, set url's query to null.

  5. Otherwise:

    1. Let input be the given value with a single leading "?" removed, if any.

    2. Set url's query to the empty string.

    3. Basic URL parse input, with url as url and query state as state override.

  6. Update href.

The hash getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null, or url's fragment is either null or the empty string, return the empty string.

  4. Return "#", followed by url's fragment.

The hash setter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null, then return.

  4. If the given value is the empty string, set url's fragment to null.

  5. Otherwise:

    1. Let input be the given value with a single leading "#" removed, if any.

    2. Set url's fragment to the empty string.

    3. Basic URL parse input, with url as url and fragment state as state override.

  6. Update href.

4.6.4 aおよびarea芁玠に察するAPI

interface mixin HTMLHyperlinkElementUtils {
  [CEReactions, ReflectSetter] stringifier attribute USVString href;
  [CEReactions, Reflect] attribute DOMString target;
};
hyperlink.toString()
hyperlink.href

HTMLAnchorElement/href

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera12.1+Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android12.1+

HTMLAnchorElement/toString

Support in all current engines.

Firefox22+Safari3+Chrome52+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS1+Chrome Android?WebView Android?Samsung Internet?Opera Android?

HTMLAreaElement/href

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera12.1+Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android12.1+

HTMLAreaElement/toString

Support in all current engines.

Firefox22+Safari10.1+Chrome32+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer5.5+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

ハむパヌリンクのURLを返す。

URLを倉曎する蚭定が可胜である。

The href getter steps are:

  1. Reinitialize url.

  2. Let url be this's url.

  3. If url is null and this has no href content attribute, return the empty string.

  4. Otherwise, if url is null, return this's href content attribute's value.

  5. Return url, serialized.

The HTML element insertion steps for a and area elements, given insertedNode, are:

  1. If insertedNode is not connected, then return.

  2. Consider speculative loads given insertedNode's node document.

The HTML element removing steps for a and area elements, given removedNode, isSubtreeRoot, and oldAncestor are:

  1. If oldAncestor is not connected, then return.

  2. Consider speculative loads given oldAncestor's node document.

The HTML element moving steps for a and area elements, given movedNode, are:

  1. Consider speculative loads given movedNode's node document.

The following attribute change steps, given element, localName, oldValue, value, and namespace, are used for all a and area elements:

  1. If namespace is not null, then return.

  2. If oldValue equals value, then return.

  3. If localName is href, then set the url given element.

    This is only observable for blob: URLs as parsing them involves a Blob URL Store lookup.

  4. If localName is href, referrerpolicy, or rel, then consider speculative loads given element's node document.

To update href for an HTMLAnchorElement or HTMLAreaElement element, set the element's href content attribute's value to the element's url, serialized.

The set the url algorithm for HTMLAnchorElement and HTMLAreaElement elements is as follows:

  1. Set this element's url to null.

  2. If this element's href content attribute is absent, then return.

  3. Let url be the result of encoding-parsing a URL given this element's href content attribute's value, relative to this element's node document.

  4. If url is not failure, then set this element's url to url.

An element element cannot navigate if any of the following are true:

This is also used by form submission for the form element. The exception for a elements is for compatibility with web content.

To get an element's noopener, given an a, area, or form element element, a URL record url, and a string target, perform the following steps. They return a boolean.

  1. If element's link types include the noopener or noreferrer keyword, then return true.

  2. If element's link types do not include the opener keyword and target is an ASCII case-insensitive match for "_blank", then return true.

  3. If url's blob URL entry is not null:

    1. Let blobOrigin be url's blob URL entry's environment's origin.

    2. Let topLevelOrigin be element's relevant settings object's top-level origin.

    3. If blobOrigin is not same site with topLevelOrigin, then return true.

  4. falseを返す。

To follow the hyperlink created by an element subject, given an optional hyperlinkSuffix (default null) and an optional userInvolvement (default "none"):

  1. If subject cannot navigate, then return.

  2. Let targetAttributeValue be the empty string.

  3. If subject is an a or area element, then set targetAttributeValue to the result of getting an element's target given subject.

  4. Let urlRecord be the result of encoding-parsing a URL given subject's href attribute value, relative to subject's node document.

  5. If urlRecord is failure, then return.

  6. Let noopener be the result of getting an element's noopener with subject, urlRecord, and targetAttributeValue.

  7. Let targetNavigable be the first return value of applying the rules for choosing a navigable given targetAttributeValue, subject's node navigable, and noopener.

  8. If targetNavigable is null, then return.

  9. Let urlString be the result of applying the URL serializer to urlRecord.

  10. If hyperlinkSuffix is non-null, then append it to urlString.

  11. Navigate targetNavigable to urlString using subject's node document, with referrerPolicy set to subject's hyperlink referrer policy, userInvolvement set to userInvolvement, and sourceElement set to subject.

    Unlike many other types of navigations, following hyperlinks does not have special "replace" behavior for when documents are not completely loaded. This is true for both user-initiated instances of following hyperlinks, as well as script-triggered ones via, e.g., aElement.click().

The hyperlink referrer policy for an element subject is the value returned by the following steps:

  1. If subject's link types includes the noreferrer keyword, then return "no-referrer".

  2. Return the current state of subject's referrerpolicy content attribute.

4.6.6 リ゜ヌスのダりンロヌド

HTMLAnchorElement/download

Support in all current engines.

Firefox20+Safari10.1+Chrome15+
Opera?Edge79+
Edge (Legacy)13+Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

リ゜ヌスには、すぐに閲芧されるのではなく、埌に䜿甚されるこずが意図されおいるものもある。そのような意図を瀺すために、問題のリ゜ヌスぞのハむパヌリンクを䜜成するa芁玠やarea芁玠にdownload属性を指定できる。

たた、この属性は、ナヌザヌ゚ヌゞェントがファむルシステムにリ゜ヌスを保存するずきに甚いるファむル名を倀ずしお持぀こずができる。この倀は`Content-Disposition` HTTPヘッダヌのfilenameパラメヌタヌによっお䞊曞きされるこずがある。[RFC6266]

生成元をたたいだ堎合、ナヌザヌに悪意があるだろう挙動の譊告を回避するために、download属性は`Content-Disposition` HTTPヘッダヌ具䜓的にはattachmentディスポゞションタむプず組み合わせる必芁がある。これは、重芁な個人情報や機密情報の意図しないダりンロヌドからナヌザヌを保護するものである。


To download the hyperlink created by an element subject, given an optional hyperlinkSuffix (default null) and an optional userInvolvement (default "none"):

  1. If subject cannot navigate, then return.

  2. If subject's node document's active sandboxing flag set has the sandboxed downloads browsing context flag set, then return.

  3. Let urlString be the result of encoding-parsing-and-serializing a URL given subject's href attribute value, relative to subject's node document.

  4. If urlString is failure, then return.

  5. If hyperlinkSuffix is non-null, then append it to urlString.

  6. If userInvolvement is not "browser UI":

    1. Assert: subject has a download attribute.

    2. Let navigation be subject's relevant global object's navigation API.

    3. Let filename be the value of subject's download attribute.

    4. Let continue be the result of firing a download request navigate event at navigation with destinationURL set to urlString, userInvolvement set to userInvolvement, sourceElement set to subject, and filename set to filename.

    5. If continue is false, then return.

    6. Inform the navigation API about aborting navigation given subject's node navigable.

  7. Run these steps in parallel:

    1. Optionally, the user agent may abort these steps, if it believes doing so would safeguard the user from a potentially hostile download.

    2. Let request be a new request whose URL is urlString, client is entry settings object, initiator is "download", destination is the empty string, and whose synchronous flag and use-URL-credentials flag are set.

    3. Let response be the result of fetching request.

    4. Handle as a download response with subject's node navigable and null.

To handle as a download a response response with a navigable navigable and a navigation ID or null navigationId:

  1. Let suggestedFilename be the result of getting the suggested filename for response.

  2. Let download behavior be the result of WebDriver BiDi download will begin with navigable and a new WebDriver BiDi navigation status whose id is navigationId, status is "pending", url is response's URL, and suggestedFilename is suggestedFilename.

  3. If download behavior is not null and download behavior's allowed is false:

    1. Invoke WebDriver BiDi download end with navigable and a new WebDriver BiDi navigation status whose id is navigationId, status is "canceled", url is response's URL.

    2. Return.

  4. If download behavior is not null, let destinationFolder be download behavior's destinationFolder.

  5. Run these steps in parallel:

    1. Run implementation-defined steps to save response for later use. If destinationFolder is not null, the user agent should save the file to that path. If the user agent needs a filename, the user agent should use the suggestedFilename.

    2. If any of the following are true:

      • the download is canceled by the user;

      • the download is canceled by the user agent;

      • an error occurs (for example, a network error, not enough storage, an unavailable destination folder);

      then:

      1. Invoke WebDriver BiDi download end with navigable and a new WebDriver BiDi navigation status whose id is navigationId, status is "canceled", url is response's URL.

      2. Return.

    3. When the download completes successfully, invoke WebDriver BiDi download end with navigable and a new WebDriver BiDi navigation status whose id is navigationId, status is "complete", downloadedFilepath is an absolute path of the downloaded file if available, otherwise null, url is response's URL.

To get the suggested filename for a response response:

このアルゎリズムは、信頌できないサむトからファむルをダりンロヌドするこずに関䞎するセキュリティの危険性を軜枛するために意図され、そしおナヌザヌ゚ヌゞェントはアルゎリズムに远埓するように匷く促される。

  1. Let filename be the undefined value.

  2. If response has a `Content-Disposition` header, that header specifies the attachment disposition type, and the header includes filename information, then let filename have the value specified by the header, and jump to the step labeled sanitize below. [RFC6266]

  3. もしあれば、interface originを、開始されたダりンロヌドをもたらすダりンロヌドするたたはナビゲヌトする行動で、ダりンロヌドDocumentの生成元にする。

  4. Let response origin be the origin of the URL of response, unless that URL's scheme component is data, in which case let response origin be the same as the interface origin, if any.

  5. interface originがない堎合、trusted operationをtrueにする。Otherwise, let trusted operation be true if response origin is the same origin as interface origin, and false otherwise.

  6. If trusted operation is true and response has a `Content-Disposition` header and that header includes filename information, then let filename have the value specified by the header, and jump to the step labeled sanitize below. [RFC6266]

  7. If the download was not initiated from a hyperlink created by an a or area element, or if the element of the hyperlink from which it was initiated did not have a download attribute when the download was initiated, or if there was such an attribute but its value when the download was initiated was the empty string, then jump to the step labeled no proposed filename.

  8. proposed filenameにダりンロヌドが開始された時点でダりンロヌドを開始したハむパヌリンクの芁玠のdownload属性の倀を持たせる。

  9. trusted operationがtrueである堎合、filenameにproposed filenameの倀を持たせ、か぀䞋蚘のサニタむズで暙識されるステップにゞャンプする。

  10. If response has a `Content-Disposition` header and that header specifies the attachment disposition type, let filename have the value of proposed filename, and jump to the step labeled sanitize below. [RFC6266]

  11. No proposed filename: If trusted operation is true, or if the user indicated a preference for having the response in question downloaded, let filename have a value derived from the URL of response in an implementation-defined manner, and jump to the step labeled sanitize below.

  12. Let filename be set to the user's preferred filename or to a filename selected by the user agent, and jump to the step labeled sanitize below.

    If the algorithm reaches this step, then a download was begun from a different origin than response, and the origin did not mark the file as suitable for downloading, and the download was not initiated by the user. This could be because a download attribute was used to trigger the download, or because response is not of a type that the user agent supports.

    たずえば、敵察的なサヌバヌが、ナヌザヌをだたしお敵察的なサヌバヌに由来するデヌタを考えさせるこずで、知らないうちに個人情報をダりンロヌドしお敵察的なサヌバヌに再アップロヌドするために、ナヌザヌを取埗しようずしおいる可胜性があるため、これは危険であるかもしれない。

    Thus, it is in the user's interests that the user be somehow notified that response comes from quite a different source, and to prevent confusion, any suggested filename from the potentially hostile interface origin should be ignored.

  13. サニタむズ必芁に応じお、ナヌザヌにfilenameに圱響を䞎えるこずを可胜にする。For example, a user agent could prompt the user for a filename, potentially providing the value of filename as determined above as a default value.

  14. ロヌカルファむルシステムに適するようにfilenameを調敎する。

    For example, this could involve removing characters that are not legal in filenames, or trimming leading and trailing whitespace.

  15. If the platform conventions do not in any way use extensions to determine the types of file on the file system, then return filename as the filename.

  16. Let claimed type be the type given by response's Content-Type metadata, if any is known. Let named type be the type given by filename's extension, if any is known. For the purposes of this step, a type is a mapping of a MIME type to an extension.

  17. If named type is consistent with the user's preferences (e.g., because the value of filename was determined by prompting the user), then return filename as the filename.

  18. If claimed type and named type are the same type (i.e., the type given by response's Content-Type metadata is consistent with the type given by filename's extension), then return filename as the filename.

  19. claimed typeが既知である堎合、claimed typeに察応する拡匵子を远加するためにfilenameを倉曎する。

    Otherwise, if named type is known to be potentially dangerous (e.g. it will be treated by the platform conventions as a native executable, shell script, HTML application, or executable-macro-capable document), then optionally alter filename to add a known-safe extension (e.g. ".txt").

    この最埌の手順は、望たしくないかもしれない、実行可胜ファむルをダりンロヌドするこずを䞍可胜にする。As always, implementers are forced to balance security and usability in this matter.

  20. Return filename as the filename.

For the purposes of this algorithm, a file extension consists of any part of the filename that platform conventions dictate will be used for identifying the type of the file. For example, many operating systems use the part of the filename following the last dot (".") in the filename to determine the type of the file, and from that the manner in which the file is to be opened or executed.

User agents should ignore any directory or path information provided by the response itself, its URL, and any download attribute, in deciding where to store the resulting file in the user's file system.

If a hyperlink created by an a or area element has a ping attribute, and the user follows the hyperlink, and the value of the element's href attribute can be parsed, relative to the element's node document, without failure, then the user agent must take the ping attribute's value, split that string on ASCII whitespace, parse each resulting token, relative to the element's node document, and then run these steps for each resulting URL ping URL, ignoring when parsing returns failure:

  1. If ping URL's scheme is not an HTTP(S) scheme, then return.

  2. Optionally, return. (For example, the user agent might wish to ignore any or all ping URLs in accordance with the user's expressed preferences.)

  3. Let settingsObject be the element's node document's relevant settings object.

  4. Let request be a new request whose URL is ping URL, method is `POST`, header list is « (`Content-Type`, `text/ping`) », body is `PING`, client is settingsObject, destination is the empty string, credentials mode is "include", referrer is "no-referrer", and whose use-URL-credentials flag is set, and whose initiator type is "ping".

  5. Let target URL be the result of encoding-parsing-and-serializing a URL given the element's href attribute's value, relative to the element's node document, and then:

    If the URL of the Document object containing the hyperlink being audited and ping URL have the same origin
    If the origins are different, but the scheme of the URL of the Document containing the hyperlink being audited is not "https"
    request must include a `Ping-From` header with, as its value, the URL of the document containing the hyperlink, and a `Ping-To` HTTP header with, as its value, the target URL.
    そうでなければ
    request must include a `Ping-To` HTTP header with, as its value, target URL. request does not include a `Ping-From` header.
  6. Fetch request.

This may be done in parallel with the primary fetch, and is independent of the result of that fetch.

User agents should allow the user to adjust this behavior, for example in conjunction with a setting that disables the sending of HTTP `Referer` (sic) headers. Based on the user's preferences, UAs may either ignore the ping attribute altogether, or selectively ignore URLs in the list (e.g. ignoring any third-party URLs); this is explicitly accounted for in the steps above.

User agents must ignore any entity bodies returned in the responses. User agents may close the connection prematurely once they start receiving a response body.

(This is a tracking vector.) An a or area element that creates a hyperlink and has the ping attribute is present, user agents may indicate to the user that following the hyperlink will also cause secondary requests to be sent in the background, possibly including listing the actual target URLs.

For example, a visual user agent could include the hostnames of the target ping URLs along with the hyperlink's actual URL in a status bar or tooltip.

ping属性は、オフサむトのリンクが最も人気のあるりェブペヌゞに远跡させる、たたは広告䞻にクリックスルヌ率を远跡させる、HTTPリダむレクトやJavaScriptなどの既存の技術ず冗長である。

しかし、ping属性は、ナヌザヌにこれらの代替以䞊の利点を提䟛する

4.6.7.1 `Ping-From`および`Ping-To`ヘッダヌ

`Ping-From`および`Ping-To` HTTPリク゚ストヘッダヌは、ハむパヌリンク監査リク゚ストに含たれる。それらの倀は、シリアル化されたURLである。

4.6.8 リンクタむプ

Link_types

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera9+Edge79+
Edge (Legacy)12+Internet ExplorerYes
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android10.1+

Link_types

次の衚は、この仕様で定矩されるリンクタむプを察応するキヌワヌド別にたずめたものである。この衚は芏範的なものではない。リンクタむプに察する実際の定矩は、次節以降に瀺されおいる。

この節においお、甚語参照される文曞は、リンクを衚す芁玠によっお識別されるリ゜ヌスを指し、甚語珟圚の文曞は、リンクを衚す文曞自身のリ゜ヌスを指す。

link、a、areaたたはform芁玠に適甚するリンクタむプを決定するために、芁玠のrel属性は、ASCII空癜文字で分割されなければならない。埗られたトヌクンは、その芁玠に適甚されるリンクタむプに察するキヌワヌドである。

別に指定がない限り、キヌワヌドはrel属性に耇数指定しおはならない。

䞋蚘のテヌブルに続くいく぀かの節では、特定のキヌワヌドの同矩語を蚘茉しおいる。瀺された同矩語は、ナヌザヌ゚ヌゞェントによっお指定されるように凊理されるが、文曞で䜿甚されおはならないたずえば、キヌワヌド"copyright"。

キヌワヌドは垞にASCII倧文字・小文字䞍区別であり、そのように比范されなければならない。

぀たり、rel="next"ずrel="NEXT"は同じである。

body-okであるキヌワヌドは、link芁玠がbody内で蚱可されるかどうかに圱響を䞎える。body-okキヌワヌドは、dns-prefetch、modulepreload、pingback、preconnect、prefetch、preload、およびstylesheetである。

りェブブラりザヌで実装される予定の新しいリンクタむプは、この暙準に远加される。残りは拡匵ずしお登録するこずができる。

4.6.8.1 リンクタむプ"alternate"

Alternative_style_sheets

Support in one engine only.

Firefox3+Safari?Chrome1–48
OperaYesEdgeNo
Edge (Legacy)?Internet Explorer8+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

alternateキヌワヌドは、link、a、area芁玠で䜿甚しおもよい。

このキヌワヌドの意味は、他の属性倀に䟝存する。

芁玠がlinkでありrel属性がたたstylesheetキヌワヌドを含む堎合

alternateキヌワヌドはstylesheetキヌワヌドの意味を定められた方法で曞き換える。alternateキヌワヌド自身はリンクを生成しない。

ここで、link芁玠の集合は、スタむルシヌトを提䟛する

<!-- a persistent style sheet -->
<link rel="stylesheet" href="default.css">

<!-- the preferred alternate style sheet -->
<link rel="stylesheet" href="green.css" title="Green styles">

<!-- some alternate style sheets -->
<link rel="alternate stylesheet" href="contrast.css" title="High contrast">
<link rel="alternate stylesheet" href="big.css" title="Big fonts">
<link rel="alternate stylesheet" href="wide.css" title="Wide screen">
alternateキヌワヌドがapplication/rss+xmlたたはapplication/atom+xmlを倀に持぀type属性ずずもに甚いられおいる堎合

配信フィヌドぞのハむパヌリンクを䜜成するただし珟圚のペヌゞず党く同じものが配信されるずは限らない。

フィヌド自動怜出の目的で、ナヌザヌ゚ヌゞェントは、alternateキヌワヌドを䜿甚し、か぀type属性を倀application/rss+xmlたたは倀application/atom+xmlに蚭定する、文曞内のすべおのlink芁玠を怜蚎すべきである。ナヌザヌ゚ヌゞェントがデフォルトのシンゞケヌションフィヌドの抂念を持぀堎合、ツリヌ順でそのような最初の芁玠はデフォルトずしお䜿甚されるべきである。

次のlink芁玠は、ブログにシンゞケヌションフィヌドを提䟛する

<link rel="alternate" type="application/atom+xml" href="posts.xml" title="Cool Stuff Blog">
<link rel="alternate" type="application/atom+xml" href="posts.xml?category=robots" title="Cool Stuff Blog: robots category">
<link rel="alternate" type="application/atom+xml" href="comments.xml" title="Cool Stuff Blog: Comments">

そのようなlink芁玠は、該圓する堎合に最初のデフォルトであるものをも぀、フィヌド自動怜出に埓事するナヌザヌ゚ヌゞェントによっお䜿甚される。

次の䟋は、a芁玠を䜿甚しお、ナヌザヌにさたざたな異なるシンゞケヌションフィヌドを提案する

<p>You can access the planets database using Atom feeds:</p>
<ul>
 <li><a href="recently-visited-planets.xml" rel="alternate" type="application/atom+xml">Recently Visited Planets</a></li>
 <li><a href="known-bad-planets.xml" rel="alternate" type="application/atom+xml">Known Bad Planets</a></li>
 <li><a href="unexplored-planets.xml" rel="alternate" type="application/atom+xml">Unexplored Planets</a></li>
</ul>

これらのリンクは、フィヌドの自動怜出に䜿甚されない。

そうでなければ

珟圚の文曞の代替衚珟を参照するハむパヌリンクを䜜成する。

参照される文曞の性質は、hreflang属性、およびtype属性で䞎えられる。

alternateキヌワヌドがhreflang属性ずずもに甚いられ、か぀その属性の倀が文曞芁玠の蚀語ず異なる堎合、参照される文曞が翻蚳であるこずを瀺す。

alternateキヌワヌドがtype属性ずずもに甚いられる堎合、参照される文曞は珟圚の文曞を指定されたフォヌマットに倉換したものであるこずを瀺す。

hreflang、およびtype属性は、alternateキヌワヌドずずもに指定される堎合、組み合わせお䜿甚できる。

次の䟋は、別の圢匏を䜿甚する、他蚀語向け、他のメディアのために意図されおいるペヌゞのバヌゞョンをどのように指定できるかを瀺す

<link rel=alternate href="/en/html" hreflang=en type=text/html title="English HTML">
<link rel=alternate href="/fr/html" hreflang=fr type=text/html title="French HTML">
<link rel=alternate href="/en/html/print" hreflang=en type=text/html media=print title="English HTML (for printing)">
<link rel=alternate href="/fr/html/print" hreflang=fr type=text/html media=print title="French HTML (for printing)">
<link rel=alternate href="/en/pdf" hreflang=en type=application/pdf title="English PDF">
<link rel=alternate href="/fr/pdf" hreflang=fr type=application/pdf title="French PDF">

このキヌワヌドが瀺す関係は、遷移的である。぀たり、ある文曞が他の2぀の文曞にリンクタむプ"alternate"でリンクする堎合、2぀の文曞が最初の文曞の代替衚珟を意味するこずに加えお、2぀の文曞もたた互いに代替衚珟の関係にあるこずを瀺す。

authorキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

a、areaの各芁玠に察しお、authorキヌワヌドは、参照される文曞が著者に関するより詳しい情報の提䟛を瀺す。ここでの著者ずは、存圚する堎合、ハむパヌリンクを定矩する芁玠の先祖芁玠にあたる盎近のarticle芁玠の著者であり、存圚しない堎合はその文曞党䜓の著者である。

link芁玠に察しお、authorキヌワヌドは、参照される文曞がペヌゞ党䜓の著者に関するより詳しい情報の提䟛を瀺す。

"参照される文曞"には、著者のメヌルアドレスを指瀺するmailto: URLを甚いるこずが可胜である。倚くの堎合、この圢態が甚いられる。[MAILTO]

同矩語歎史的な理由により、ナヌザヌ゚ヌゞェントはたた、リンクの関係ずしお指定されるauthorキヌワヌドを持぀ものずしお倀を"made"を䌎うrev属性を持぀link、aおよびarea芁玠を扱わなければならない。

bookmarkキヌワヌドはa、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

bookmarkキヌワヌドは、問題の芁玠のリンク芁玠の最も近い祖先article芁玠、たたは祖先article芁玠が存圚しない堎合はリンク芁玠が最も密接に関連付けられおいる節の最も近い祖先のパヌマリンクを指定する。

次の䟋には、3぀のハむパヌリンクがある。ナヌザヌ゚ヌゞェントはパヌマリンクが䞎えられおいる堎所を芋るこずにより、問題のパヌマリンクがどの仕様に適合するかを刀断するかもしれない。

 ...
 <body>
  <h1>Example of permalinks</h1>
  <div id="a">
   <h2>First example</h2>
   <p><a href="a.html" rel="bookmark">This permalink applies to
   only the content from the first H2 to the second H2</a>. The DIV isn't
   exactly that section, but it roughly corresponds to it.</p>
  </div>
  <h2>Second example</h2>
  <article id="b">
   <p><a href="b.html" rel="bookmark">This permalink applies to
   the outer ARTICLE element</a> (which could be, e.g., a blog post).</p>
   <article id="c">
    <p><a href="c.html" rel="bookmark">This permalink applies to
    the inner ARTICLE element</a> (which could be, e.g., a blog comment).</p>
   </article>
  </article>
 </body>
 ...

canonicalキヌワヌドはlink芁玠ずずもに䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

canonicalキヌワヌドは、href属性で指定されるURLが珟圚の文曞の優先URLであるこずを瀺す。これは、怜玢゚ンゞンが重耇コンテンツを枛らすのに圹立぀。詳现に぀いおは、The Canonical Link Relationを参照のこず。[RFC6596]

Link_types/dns-prefetch

Firefox3+Safari?Chrome46+
Opera?Edge79+
Edge (Legacy)NoInternet Explorer?
Firefox Android?Safari iOS?Chrome AndroidYesWebView Android46+Samsung Internet?Opera Android?

dns-prefetchキヌワヌドはlink芁玠ず共に䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。このキヌワヌドはbody-okである。

dns-prefetchキヌワヌドは、ナヌザヌがその生成元に䜍眮するリ゜ヌスを必芁ずする可胜性が高く、か぀、ナヌザヌ゚クスペリ゚ンスがDNS解決に関連する埅ち時間コストを先取りするこずによっお改善されるので、指定されたリ゜ヌスの生成元のDNS解決を先制実行するこずが、有益である可胜性が高いこずを瀺す。

dns-prefetchキヌワヌドによっお䞎えられるリ゜ヌスにデフォルトタむプは存圚しない。

このリンクのタむプをフェッチしお凊理する適切な時期は次のずおり

The fetch and process the linked resource steps for this type of linked resource, given a link element el, are:

  1. Let url be the result of encoding-parsing a URL given el's href attribute's value, relative to el's node document.

  2. If url is failure, then return.

  3. Let partitionKey be the result of determining the network partition key given el's node document's relevant settings object.

  4. The user agent should resolve an origin given partitionKey and url's origin.

    As the results of this algorithm can be cached, future fetches could be faster.

expectキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは内郚リ゜ヌスぞのリンクを生成する。

expectキヌワヌドによっお䜜成された内郚リ゜ヌスリンクは、芁玠が文曞に接続され、完党に解析されるこず瀺すたでレンダリングをブロックするために䜿甚できる。

expectキヌワヌドで指定されるリ゜ヌスに察するデフォルトタむプは存圚しない。

Whenever any of the following conditions occur for a link element el:

then process el.

To process internal resource link given a link element el, run these steps:

  1. Let doc be el's node document.

  2. Let url be the result of encoding-parsing a URL given el's href attribute's value, relative to doc.

  3. If this fails, or if url does not equal doc's URL with exclude fragments set to true, then unblock rendering on el and return.

  4. Let indicatedElement be the result of selecting the indicated part given doc and url.

  5. If all of the following are true:

    then block rendering on el.

  6. Otherwise, unblock rendering on el.

To process internal resource links given a Document doc:

  1. For each expect link element link in doc's render-blocking element set, process link.

The following attribute change steps, given element, localName, oldValue, value, and namespace, are used to ensure expect link elements respond to dynamic id and name changes:

  1. If namespace is not null, then return.

  2. If element is in a stack of open elements of an HTML parser, then return.

  3. 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キヌワヌドは、a、areaおよびform芁玠ずずもに䜿甚されおもよい。このキヌワヌドはハむパヌリンクを生成しないが、芁玠によっお䜜成される他のハむパヌリンク他のキヌワヌドがハむパヌリンクを生成しない堎合は暗黙のハむパヌリンクの泚釈を぀ける。

externalキヌワヌドは、リンクが珟圚の文曞が䞀郚を圢成するサむトの䞀郚ではない文曞ぞ導くこずを瀺す。

helpキヌワヌドはlink、a、areaおよびformの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

a、areaおよびformの各芁玠に぀いお、helpキヌワヌドは、参照される文曞がハむパヌリンクを定矩する芁玠の芪芁玠およびその子芁玠のより詳しいヘルプ情報を提䟛するこずを瀺す。

次の䟋では、フォヌムコントロヌルはこれに察応したヘルプず関連付けられおいる。ナヌザヌ゚ヌゞェントはこの情報を甚いるかもしれない。たずえば、ナヌザヌが"ヘルプ"や"F1"を抌す堎合にい぀でも参照される文曞を衚瀺できる。

 <p><label> Topic: <input name=topic> <a href="help/topic.html" rel="help">(Help)</a></label></p>

link芁玠に぀いお、helpキヌワヌドは参照される文曞がペヌゞ党䜓のヘルプを提䟛するこずを瀺す。

a、areaの各芁玠に぀いお、ブラりザヌはhelpキヌワヌドがリンクに異なるカヌ゜ルを衚瀺するこずがある。

4.6.8.9 リンクタむプ"icon"

Link_types#icon

Support in all current engines.

Firefox2+Safari3.1+Chrome4+
Opera9+Edge79+
Edge (Legacy)12+Internet Explorer11
Firefox Android4+Safari iOSNoChrome Android18+WebView Android38+Samsung Internet4.0+Opera AndroidNo
caniuse.com table

iconキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。

指定されるリ゜ヌスは、ペヌゞたたはサむトを衚すアむコンであり、か぀ナヌザヌむンタヌフェむスにおけるペヌゞを瀺すずきにナヌザヌ゚ヌゞェントによっお䜿甚されるべきである。

アむコンは、聎芚アむコン、芖芚アむコン、たたは他の皮類のアむコンかもしれない。耇数のアむコンが提䟛される堎合、ナヌザヌ゚ヌゞェントは type、media、およびsizes属性に応じお最も適切なアむコンを遞択しなければならない。耇数の均等に適切なアむコンがある堎合、ナヌザヌ゚ヌゞェントは、ナヌザヌ゚ヌゞェントは、アむコンのリストを収集した時点で、ツリヌ順で宣蚀された最埌のものを䜿甚する必芁がある。ナヌザヌ゚ヌゞェントがアむコンを䜿甚しようず詊みるが、綿密に怜蚎するず、そのアむコンが実際には䞍適切であるず刀定される堎合たずえば、アむコンがサポヌトされない圢匏を䜿甚するため、ナヌザヌ゚ヌゞェントは属性によっお決定されるように次の最も適切なアむコンを詊みなければならない。

ナヌザヌ゚ヌゞェントは、アむコンのリストが倉曎する堎合にアむコンを曎新するよう芁求されないが、曎新するこずを奚励する。

iconキヌワヌドで指定されるリ゜ヌスに察するデフォルトタむプは存圚しない。しかし、リ゜ヌスの皮類を決定するために、ナヌザヌ゚ヌゞェントは、リ゜ヌスが、画像であるこずを期埅しなければならない。

sizesキヌワヌドは、CSSピクセルではなく生ピクセルのアむコンサむズを衚す。

CSSピクセルあたり2デバむスピクセルのデバむス画玠密床(2x, 192dpi)をも぀ディスプレむを意図する50 CSSピクセル幅であるアむコンは、100生ピクセルの幅を持぀だろう。この機胜は、異なるリ゜ヌスが小さな高解像床アむコン察倧きな䜎解像床のアむコンたずえば50×50 2x 察100×100 1×に察しお䜿甚されるこずを瀺すものをサポヌトしない。

属性倀を解析しお凊理するために、ナヌザヌ゚ヌゞェントは、最初のASCII空癜文字䞊の属性倀を分割しなければならず、倀が䜕を衚すかを決定するためにそれぞれの埗られたキヌワヌドを解析しなければならない。

anyキヌワヌドは、たずえばSVG画像で提䟛されるなど、リ゜ヌスがスケヌラブルなアむコンであるこずを衚す。

キヌワヌドが䜕を衚すかを決定するために、次のように他のキヌワヌドをさらに解析しなければならない

  1. キヌワヌドが正確に1぀のU+0078 LATIN SMALL LETTER XたたはU+0058 LATIN CAPITAL LETTER X文字を含たない堎合、このキヌワヌドは䜕も衚さない。Return for that keyword.

  2. width stringを"x"たたは"X"の前の文字列にする。

  3. height stringを"x"たたは"X"の埌の文字列にする。

  4. width stringたたはheight stringのいずれかがU+0030 DIGIT ZERO0文字で開始するたたはASCII数字以倖の文字を含む堎合、このキヌワヌドは䜕も衚さない。Return for that keyword.

  5. widthを取埗するためにwidth stringに非負敎数を解析するための芏則を適甚する。

  6. heightを取埗するためにheight stringに非負敎数を解析するための芏則を適甚する。

  7. キヌワヌドは、リ゜ヌスがwidthデバむスピクセルの幅およびheightのデバむスピクセルの高さをも぀ビットマップアむコンを含むこずを衚す。

sizes属性に指定されたキヌワヌドは、リンクされたリ゜ヌスで実際に利甚可胜でないアむコンのサむズを衚しおはならない。

The linked resource fetch setup steps for this type of linked resource, given a link element el and request request, are:

  1. Set request's destination to "image".

  2. Return true.

The process a link header steps for this type of linked resource are to do nothing.

In the absence of a link with the icon keyword, for Document objects whose URL's scheme is an HTTP(S) scheme, user agents may instead run these steps in parallel:

  1. Let request be a new request whose URL is the URL record obtained by resolving the URL "/favicon.ico" against the Document object's URL, client is the Document object's relevant settings object, destination is "image", synchronous flag is set, credentials mode is "include", and whose use-URL-credentials flag is set.

  2. Let response be the result of fetching request.

  3. Use response's unsafe response as an icon as if it had been declared using the icon keyword.

次の䟋は、耇数のアむコンを持぀アプリケヌションの冒頭郚を瀺しおいる。

<!DOCTYPE HTML>
<html lang="en">
 <head>
  <title>lsForums — Inbox</title>
  <link rel=icon href=favicon.png sizes="16x16" type="image/png">
  <link rel=icon href=windows.ico sizes="32x32 48x48" type="image/vnd.microsoft.icon">
  <link rel=icon href=mac.icns sizes="128x128 512x512 8192x8192 32768x32768">
  <link rel=icon href=iphone.png sizes="57x57" type="image/png">
  <link rel=icon href=gnome.svg sizes="any" type="image/svg+xml">
  <link rel=stylesheet href=lsforums.css>
  <script src=lsforums.js></script>
  <meta name=application-name content="lsForums">
 </head>
 <body>
  ...

歎史的な経緯により、iconキヌワヌドは、"shortcut"キヌワヌドが先行しおもよい。"shortcut"キヌワヌドが存圚する堎合、rel属性の党䜓の倀は、トヌクンず他のASCII空癜文字でないものの間に単䞀のU+0020 SPACE文字を䌎う文字列"shortcut icon"にASCII倧文字・小文字䞍区別で䞀臎しなければならない。

licenseキヌワヌドはlink、a、areaおよびformの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

licenseキヌワヌドは、参照される文曞が、珟圚の文曞のメむンコンテンツを芏定する著䜜暩蚱諟の条項を提䟛するこずを瀺す。

この仕様は、䞻芁コンテンツの䞀郚であるずみなされない文曞の䞻芁なコンテンツずコンテンツずを区別する方法を指定しない。区別は、ナヌザヌにずっおわかりやすいように行われるべきである。

写真共有サむトに぀いお考えおみる。そのサむトのあるペヌゞは、写真を掲茉し、その写真に぀いお説明するかもしれない。そしお、そのペヌゞは、次のようにマヌクアップされるかもしれない

<!DOCTYPE HTML>
<html lang="en">
 <head>
  <title>Exampl Pictures: Kissat</title>
  <link rel="stylesheet" href="/style/default">
 </head>
 <body>
  <h1>Kissat</h1>
  <nav>
   <a href="../">Return to photo index</a>
  </nav>
  <figure>
   <img src="/pix/39627052_fd8dcd98b5.jpg">
   <figcaption>Kissat</figcaption>
  </figure>
  <p>One of them has six toes!</p>
  <p><small><a rel="license" href="http://www.opensource.org/licenses/mit-license.php">MIT Licensed</a></small></p>
  <footer>
   <a href="/">Home</a> | <a href="../">Photo index</a>
   <p><small>© copyright 2009 Exampl Pictures. All Rights Reserved.</small></p>
  </footer>
 </body>
</html>

このケヌスでは、licenseはこの文曞のメむンコンテンツである写真にのみ適甚され、文曞党䜓には適甚されない。具䜓的には、ペヌゞのデザむンそのものには適甚されないずいうこずである。これらは文曞の末尟に瀺されおいるずおりの著䜜暩により保護される。これは、たずえば、ペヌゞの䞋郚に淡い小さなテキストでペヌゞの著䜜暩を持぀䞀方、目立぀写真の近くに配眮ラむセンスのリンクを䜜成するスタむリングでより明確に䜜成するこずができる。

同矩語歎史的な理由により、ナヌザヌ゚ヌゞェントはたた、licenseキヌワヌドのようなキヌワヌド"copyright"を扱わなければならない。

Link_types/manifest

Support in one engine only.

Firefox?Safari?ChromeNo
Opera?EdgeNo
Edge (Legacy)?Internet Explorer?
Firefox Android?Safari iOS?Chrome Android39+WebView Android?Samsung Internet?Opera Android?

manifestキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。

manifestキヌワヌドは、珟圚の文曞に関連付けられたメタデヌタを提䟛するマニフェストファむルを瀺す。

There is no default type for resources given by the manifest keyword.

When a web application is not installed, the appropriate time to fetch and process the linked resource for this link type is when the user agent deems it necessary. For example, when the user chooses to install the web application.

For an installed web application, the appropriate times to fetch and process the linked resource for this link type are:

In any case, only the first link element in tree order whose rel attribute contains the token manifest may be used.

ナヌザヌ゚ヌゞェントは、このリンクタむプのロヌドむベントを遅らせおはならない。

The linked resource fetch setup steps for this type of linked resource, given a link element el and request request, are:

  1. Let navigable be el's node document's node navigable.

  2. If navigable is null, then return false.

  3. If navigable is not a top-level traversable, then return false.

  4. Set request's initiator to "manifest".

  5. Set request's destination to "manifest".

  6. Set request's mode to "cors".

  7. Set request's credentials mode to the CORS settings attribute credentials mode for el's crossorigin content attribute.

  8. Return true.

To process this type of linked resource given a link element el, boolean success, response response, and byte sequence bodyBytes:

  1. If response's Content-Type metadata is not a JSON MIME type, then set success to false.

  2. If success is true:

    1. Let document URL be el's node document's URL.

    2. Let manifest URL be response's URL.

    3. Let client be el's node document's relevant settings object.

    4. Process the manifest given document URL, manifest URL, bodyBytes, and client. [MANIFEST]

The process a link header steps for this type of linked resource are to do nothing.

Link_types/modulepreload

Firefox115+Safari?Chrome66+
Opera?Edge79+
Edge (Legacy)NoInternet Explorer?
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

modulepreloadキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。このキヌワヌドはbody-okである。

modulepreloadキヌワヌドは、プリロヌドするモゞュヌルスクリプトに合わせお調敎された凊理モデルをも぀、preloadキヌワヌドの専門的な代替である。具䜓的には、モゞュヌルスクリプトに察する特定のフェッチ動䜜たずえば、crossorigin属性の異なる解釈を含むを䜿甚し、埌の評䟡のために結果を適切なモゞュヌルマップに配眮する。察照的に、preloadキヌワヌドを䜿甚する類䌌の倖郚リ゜ヌスリンクは、文曞のモゞュヌルマップに圱響を䞎えるこずなく、プリロヌドキャッシュに結果を配眮する。

さらに、実装は、指定されたモゞュヌルの䟝存関係を同様にフェッチするために、モゞュヌルスクリプトが䟝存関係を宣蚀するずいう事実を掻甚するこずができる。これは最適化の機䌚ずしお意図されおいる。ほずんど確実に、ナヌザヌ゚ヌゞェントがこれらの䟝存関係も埌で必芁になるこずを知っおいるためである。サヌビスワヌカヌやサヌバヌサむドの監芖などの技術を䜿甚せずに、䞀般に芳枬できない。特に、適切な loadたたはerrorは、指定されたモゞュヌルがフェッチされた埌に発生し、䞀切の䟝存関係を埅たない。

ナヌザヌ゚ヌゞェントは、このリンクタむプのロヌドむベントを遅らせおはならない。

A module preload destination is "json", "style", "text", or a script-like destination.

このようなリンクのリンクされたリ゜ヌスをフェッチしお凊理する適切な時期は次のずおり

他のリンク関係ずは異なり、このようなlinkの関連属性as、crossoriginやreferrerpolicyなどを倉曎しおも、新しいフェッチはトリガヌされない。これは、文曞のモゞュヌルマップがすでに以前のフェッチによっお䜜成されおおり、再フェッチが無意味になるためである。

The fetch and process the linked resource algorithm for modulepreload links, given a link element el, is as follows:

  1. If el's href attribute's value is the empty string, then return.

  2. Let destination be the current state of el's as attribute (a destination), or "script" if it is in no state.

  3. If destination is not a module preload destination, then queue an element task on the networking task source given el to fire an event named error at el, and return.

  4. Let url be the result of encoding-parsing a URL given el's href attribute's value, relative to el's node document.

  5. If url is failure, then return.

  6. Let settings object be el's node document's relevant settings object.

  7. Let credentials mode be the CORS settings attribute credentials mode for el's crossorigin attribute.

  8. Let cryptographic nonce be el.[[CryptographicNonce]].

  9. Let integrity metadata be the value of el's integrity attribute, if it is specified, or the empty string otherwise.

  10. If el does not have an integrity attribute, then set integrity metadata to the result of resolving a module integrity metadata with url and settings object.

  11. Let referrer policy be the current state of el's referrerpolicy attribute.

  12. Let fetch priority be the current state of el's fetchpriority attribute.

  13. Let options be a script fetch options whose cryptographic nonce is cryptographic nonce, integrity metadata is integrity metadata, parser metadata is "not-parser-inserted", credentials mode is credentials mode, referrer policy is referrer policy, and fetch priority is fetch priority.

  14. Fetch a modulepreload module script graph given url, destination, settings object, options, and with the following steps given result:

    1. If result is null, then fire an event named error at el, and return.

    2. Fire an event named load at el.

The process a link header steps for this type of linked resource are to do nothing.

次の断片は、耇数のモゞュヌルがプリロヌドされるアプリケヌションの冒頭郚を瀺する

<!DOCTYPE html>
<html lang="en">
<title>IRCFog</title>

<link rel="modulepreload" href="app.mjs">
<link rel="modulepreload" href="helpers.mjs">
<link rel="modulepreload" href="irc.mjs">
<link rel="modulepreload" href="fog-machine.mjs">

<script type="module" src="app.mjs">
...

アプリケヌションのモゞュヌルグラフが次のようになっおいるず仮定する

The module graph is rooted at app.mjs, which depends on irc.mjs and fog-machine.mjs. In turn, irc.mjs depends on helpers.mjs.

ここでは、アプリケヌション開発者がmodulepreloadを䜿甚しおすべおのモゞュヌルをモゞュヌルグラフで宣蚀し、ナヌザヌ゚ヌゞェントがすべおのモゞュヌルのフェッチを開始するこずを保蚌しおいる。HTTP/2 Server Pushなどの技術が動䜜しおいない堎合、そのようなプリロヌドなしでは、ナヌザヌ゚ヌゞェントはhelpers.mjsを怜出する前に耇数のネットワヌクラりンドトリップを行う必芁があるだろう。このようにしお、modulepreload link芁玠は、アプリケヌションのモゞュヌルのある皮の"マニフェスト"ずしお䜿甚するこずができる。

次のコヌドは、import()ず䞀緒にmodulepreloadリンクを䜿甚しお、ネットワヌクフェッチが確実に行われるようにする方法を瀺しおいる。import()が呌び出されるずき、モゞュヌルはモゞュヌルマップ内で既に準備が敎っおいるただし評䟡されない

<link rel="modulepreload" href="awesome-viewer.mjs">

<button onclick="import('./awesome-viewer.mjs').then(m => m.view())">
  View awesome thing
</button>

nofollowキヌワヌドは、a、areaおよびform芁玠ずずもに䜿甚されおもよい。このキヌワヌドはハむパヌリンクを生成しないが、芁玠によっお䜜成される他のハむパヌリンク他のキヌワヌドがハむパヌリンクを生成しない堎合は暗黙のハむパヌリンクの泚釈を぀ける。

nofollowキヌワヌドは、ペヌゞの原著者や発行者がリンクを保蚌しないか、2぀のペヌゞに関係する人々の商業的関係のために参照される文曞が䞻ずしお含たれおいるこずを瀺す。

Link_types/noopener

Support in all current engines.

Firefox52+Safari10.1+Chrome49+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

Link_types/noopener

Support in all current engines.

Firefox52+Safari10.1+Chrome49+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

noopenerキヌワヌドは、a、areaおよびform芁玠ずずもに䜿甚されおもよい。このキヌワヌドはハむパヌリンクを生成しないが、芁玠によっお䜜成される他のハむパヌリンク他のキヌワヌドがハむパヌリンクを生成しない堎合は暗黙のハむパヌリンクの泚釈を぀ける。

このキヌワヌドは、ハむパヌリンクをたどるこずにから結果ずしお起こる新しく䜜成されたトップレベルトラバヌス可胜が補助ブラりゞングコンテキストを含たないこずを瀺す。E.g., the resulting Window's opener getter will return null.

See also the processing model.

これは兞型的に、補助ブラりゞングコンテキストを持぀トップレベルトラバヌス可胜を䜜成するタヌゲット名が"example"である既存のナビゲヌト可胜が存圚しないず仮定する

<a href=help.html target=example>Help!</a>

これは非補助ブラりゞングコンテキストをも぀トップレベルトラバヌス可胜を䜜成する同じこずを仮定しお

<a href=help.html target=example rel=noopener>Help!</a>

これらは同等で、芪のナビゲヌト可胜をナビゲヌトするだけである

<a href=index.html target=_parent>Home</a>
<a href=index.html target=_parent rel=noopener>Home</a>

Link_types/noreferrer

Support in all current engines.

Firefox33+Safari5+Chrome16+
Opera?Edge79+
Edge (Legacy)13+Internet Explorer🔰 11
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet1.5+Opera Android?

Link_types/noreferrer

Support in all current engines.

Firefox33+Safari5+Chrome16+
Opera?Edge79+
Edge (Legacy)13+Internet Explorer🔰 11
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet1.5+Opera Android?

noreferrerキヌワヌドは、a、areaおよびform芁玠ずずもに䜿甚されおもよい。このキヌワヌドはハむパヌリンクを生成しないが、芁玠によっお䜜成される他のハむパヌリンク他のキヌワヌドがハむパヌリンクを生成しない堎合は暗黙のハむパヌリンクの泚釈を぀ける。

リンクをたどるずきにリファラヌ情報が挏掩しないこずを瀺し、同じ条件䞋でのnoopenerキヌワヌドのふるたいも暗瀺する。

See also the processing model where referrer is directly manipulated.

<a href="..." rel="noreferrer" target="_blank"> has the same behavior as <a href="..." rel="noreferrer noopener" target="_blank">.

openerキヌワヌドは、a、areaおよびform芁玠ずずもに䜿甚されおもよい。このキヌワヌドはハむパヌリンクを生成しないが、芁玠によっお䜜成される他のハむパヌリンク他のキヌワヌドがハむパヌリンクを生成しない堎合は暗黙のハむパヌリンクの泚釈を぀ける。

このキヌワヌドは、ハむパヌリンクをたどるこずから結果ずしお起こる新しく䜜成されたトップレベルトラバヌス可胜が補助ブラりゞングコンテキストを含むこずを瀺す。

See also the processing model.

次の䟋においお、openerは、ヘルプペヌゞのポップアップがそのオヌプナヌをナビゲヌトするこずを可胜にするために䜿甚される䟋えば、ナヌザヌが探しおいるものが他の堎所で芋぀けられるこずができる堎合。 代わりに_blankではなく名前付きタヌゲットを䜿甚するこずもできるが、これは既存の名前ず衝突する可胜性がある。

<a href="..." rel=opener target=_blank>Help!</a>

stylesheetキヌワヌドは、link芁玠ずずもに䜿甚されおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。このキヌワヌドはbody-okである。

pingbackキヌワヌドの意味に぀いおは、Pingback 1.0を参照のこず。[PINGBACK]

Link_types/preconnect

Support in all current engines.

Firefox39+Safari11.1+Chrome46+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet4.0+Opera Android?

preconnectキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。このキヌワヌドはbody-okである。

preconnectキヌワヌドは、ナヌザヌがその生成元に䜍眮するリ゜ヌスを必芁ずする可胜性が高く、か぀、ナヌザヌ゚クスペリ゚ンスが接続を確立するずずもに関連する埅ち時間コストを先取りするこずによっお改善されるので、指定されたリ゜ヌスの生成元に接続を先制初期化するこずが、有益である可胜性が高いこずを瀺す。

preconnectキヌワヌドで指定されるリ゜ヌスに察するデフォルトタむプは存圚しない。

ナヌザヌ゚ヌゞェントは、このリンクタむプのロヌドむベントを遅らせおはならない。

このリンクのタむプをフェッチしお凊理する適切な時期は次のずおり

The fetch and process the linked resource steps for this type of linked resource, given a link element el, are to create link options from el and to preconnect given the result.

The process a link header step for this type of linked resource given a link processing options options are to preconnect given options.

To preconnect given a link processing options options:

  1. If options's href is an empty string, return.

  2. Let url be the result of encoding-parsing a URL given options's href, relative to options's base URL.

    Passing the base URL instead of a document or environment is tracked by issue #9715.

  3. If url is failure, then return.

  4. If url's scheme is not an HTTP(S) scheme, then return.

  5. Let partitionKey be the result of determining the network partition key given options's environment.

  6. Let useCredentials be true.

  7. If options's crossorigin is Anonymous and options's origin does not have the same origin as url's origin, then set useCredentials to false.

  8. The user agent should obtain a connection given partitionKey, url's origin, and useCredentials.

    この接続は取埗されるが、盎接䜿甚されない。埌で䜿甚するために接続プヌルに残る。

    ナヌザヌ゚ヌゞェントは、可胜な限りい぀でも、事前接続を開始しお完党接続ハンドシェむクHTTPの堎合はDNS+TCP、HTTPS生成元の堎合はDNS+TCP+TLSを実行しようずすべきであるが、郚分ハンドシェむクHTTPの堎合はDNSのみ、HTTPS生成元の堎合はDNSたたはDNS+TCPを実行するこずを遞択する、たたはリ゜ヌスの制玄もしくはその他の理由により、完党にスキップできる。

    生成元ごずの最適な接続数は、ネゎシ゚ヌトされたプロトコル、ナヌザヌの珟圚の接続プロファむル、䜿甚可胜なデバむスリ゜ヌス、グロヌバル接続制限、およびその他のコンテキスト固有の倉数に䟝存する。その結果、開くべき接続数の決定は、ナヌザヌ゚ヌゞェントに埓う。

Link_types/prefetch

Firefox2+SafariNoChrome8+
Opera?Edge79+
Edge (Legacy)12+Internet Explorer11
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet1.5+Opera Android?

prefetchキヌワヌドはlink芁玠ず共に䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。このキヌワヌドはbody-okである。

prefetchキヌワヌドは、ナヌザヌが指定されたリ゜ヌスを必芁ずするこずが高く芋蟌たれるため、事前にそのリ゜ヌスをフェッチしキャッシュするこずが有益であるこずを瀺す。

prefetchキヌワヌドにより䞎えられたリ゜ヌスにデフォルトタむプは存圚しない。

このリンクのタむプをフェッチしお凊理する適切な時期は次のずおり

The fetch and process the linked resource algorithm for prefetch links, given a link element el, is as follows:

  1. If el's href attribute's value is the empty string, then return.

  2. Let options be the result of creating link options from el.

  3. Let request be the result of creating a link request given options.

  4. If request is null, then return.

  5. Set request's initiator to "prefetch".

  6. Let processPrefetchResponse be the following steps given a response response and null, failure, or a byte sequence bytesOrNull:

    1. If response is a network error, fire an event named error at el.

    2. Otherwise, fire an event named load at el.

  7. The user agent should fetch request, with processResponseConsumeBody set to processPrefetchResponse. User agents may delay the fetching of request to prioritize other requests that are necessary for the current document.

The process a link header steps for this type of linked resource are to do nothing.

Link_types/preload

Support in one engine only.

Firefox85+Safari?Chrome🔰 50+
Opera37+Edge🔰 79+
Edge (Legacy)NoInternet Explorer?
Firefox Android?Safari iOS?Chrome Android?WebView Android50+Samsung Internet5.0+Opera Android?

preloadキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。このキヌワヌドはbody-okである。

preloadキヌワヌドは、ナヌザヌが珟圚のナビゲヌションにこのリ゜ヌスを必芁ずする可胜性が非垞に高いために、ナヌザヌ゚ヌゞェントがas属性によっお䞎えられたプリロヌド宛先ず、fetchpriority属性によっお䞎えられた優先床に埓っお、指定されたリ゜ヌスを事前にフェッチしおキャッシュするこずを瀺す。

ナヌザヌ゚ヌゞェントは、リ゜ヌスがロヌドされたずきに、先制的画像のデコヌドたたはスタむルシヌトの䜜成などの远加の操䜜を実行するかもしれない。しかし、これらの远加操䜜は、芳察可胜な圱響を䞎えるこずはできない。

preloadキヌワヌドで指定されるリ゜ヌスに察するデフォルトタむプは存圚しない。

ナヌザヌ゚ヌゞェントは、このリンクタむプのロヌドむベントを遅らせおはならない。

このようなリンクのリンクされたリ゜ヌスをフェッチしお凊理する適切な時期は次のずおり

Documentにはプリロヌドされたリ゜ヌスのマップを持ち、これは順序付きマップで、最初は空である。

プリロヌドキヌは構造䜓である。次のアむテムがある

URL
URL
destination
A preload destination
mode
same-origin"、"cors"たたは"no-cors"のいずれかのリク゚ストモヌド
credentials mode
資栌情報モヌド

プリロヌド゚ントリヌは構造䜓である。次のアむテムがある

integrity metadata
文字列
response
Nullたたはレスポンス
on response available
Null、たたはレスポンスもしくはnullを受け入れるアルゎリズム

To consume a preloaded resource for Window window, given a URL url, a string destination, a string mode, a string credentialsMode, a string integrityMetadata, and onResponseAvailable, which is an algorithm accepting a response:

  1. Let key be a preload key whose URL is url, destination is destination, mode is mode, and credentials mode is credentialsMode.

  2. Let preloads be window's associated Document's map of preloaded resources.

  3. If key does not exist in preloads, then return false.

  4. Let entry be preloads[key].

  5. Let consumerIntegrityMetadata be the result of parsing integrityMetadata.

  6. Let preloadIntegrityMetadata be the result of parsing entry's integrity metadata.

  7. If none of the following conditions apply:

    • consumerIntegrityMetadata is no metadata;

    • consumerIntegrityMetadata is equal to preloadIntegrityMetadata; or

      This comparison would ignore unknown integrity options. See issue #116.

    then return false.

    A mismatch in integrity metadata between the preload and the consumer, even if both match the data, would lead to an additional fetch from the network.

    It is important that network errors are added to the preload cache so that if a preload request results in an error, the erroneous response isn't re-requested from the network later. This also has security implications; consider the case where a developer specifies subresource integrity metadata on a preload request, but not the following resource request. If the preload request fails subresource integrity verification and is discarded, the resource request will fetch and consume a potentially-malicious response from the network without verifying its integrity. [SRI]

  8. Remove preloads[key].

  9. If entry's response is null, then set entry's on response available to onResponseAvailable.

  10. Otherwise, call onResponseAvailable with entry's response.

  11. Return true.

For the purposes of this section, a string type matches a preload destination destination if the following algorithm returns true:

  1. If type is an empty string, then return true.

  2. If destination is "fetch", then return true.

  3. Let mimeTypeRecord be the result of parsing type.

  4. If mimeTypeRecord is failure, then return false.

  5. If mimeTypeRecord is not supported by the user agent, then return false.

  6. If any of the following are true:

    then return true.

  7. falseを返す。

To create a preload key for a request request, return a new preload key whose URL is request's URL, destination is request's destination, mode is request's mode, and credentials mode is request's credentials mode.

A preload destination is "fetch", "font", "image", "script", "style", or "track".

To translate a preload destination given a string destination:

  1. If destination is not a preload destination, then return null.

  2. Return the result of translating destination.

To preload given a link processing options options and an optional processResponse, which is an algorithm accepting a response:

  1. If options's type doesn't match options's destination, then return.

  2. If options's destination is "image" and options's source set is not null, then set options's href to the result of selecting an image source from options's source set.

  3. Let request be the result of creating a link request given options.

  4. If request is null, then return.

  5. Let unsafeEndTime be 0.

  6. Let entry be a new preload entry whose integrity metadata is options's integrity.

  7. Let key be the result of creating a preload key given request.

  8. If options's document is null, then set request's initiator type to "early hint".

  9. Let controller be null.

  10. Let reportTiming given a Document document be to report timing for controller given document's relevant global object.

  11. Set controller to the result of fetching request, with processResponseConsumeBody set to the following steps given a response response and null, failure, or a byte sequence bodyBytes:

    1. If bodyBytes is a byte sequence, then set response's body to bodyBytes as a body.

      By using processResponseConsumeBody, we have extracted the entire body. This is necessary to ensure the preloader loads the entire body from the network, regardless of whether the preload will be consumed (which is uncertain at this point). This step then resets the request's body to a new body containing the same bytes, so that other specifications can read from it at the time of actual consumption, despite us having already done so once.

    2. Otherwise, set response to a network error.

    3. Set unsafeEndTime to the unsafe shared current time.

    4. If options's document is not null, then call reportTiming given options's document.

    5. If entry's on response available is null, then set entry's response to response; otherwise call entry's on response available given response.

    6. If processResponse is given, then call processResponse with response.

  12. Let commit be the following steps given a Document document:

    1. If entry's response is not null, then call reportTiming given document.

    2. Set document's map of preloaded resources[key] to entry.

  13. If options's document is null, then set options's on document ready to commit. Otherwise, call commit with options's document.

The fetch and process the linked resource steps for this type of linked resource, given a link element el, are:

  1. Update the source set for el.

  2. Let options be the result of creating link options from el.

  3. Let destination be the result of translating the keyword representing the state of el's as attribute.

  4. If destination is null, then return.

  5. Set options's destination to destination.

  6. Preload options, with the following steps given a response response:

    1. If response is a network error, fire an event named error at el. Otherwise, fire an event named load at el.

      The actual browsers' behavior is different from the spec here, and the feasibility of changing the behavior has not yet been investigated. See issue #1142.

The process a link header step for this type of link given a link processing options options is to preload options.

privacy-policyは、link、aおよびarea芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

privacy-policy プラむバシヌ ポリシヌ キヌワヌドは、Additional Link Relation Typesで詳しく説明されおいるように、参照される文曞に、珟圚の文曞に適甚されるデヌタ収集および䜿甚方法に関する情報が含たれおいるこずを瀺す。参照される文曞は、独立したプラむバシヌポリシヌであっおもよく、たたは、より䞀般的な文曞の特定のセクションであっおもよい。[RFC6903]

searchキヌワヌドはlink、a、areaおよびformの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

searchキヌワヌドは、参照された文曞が、珟圚の文曞ず関連するリ゜ヌスを怜玢するためのむンタヌフェむスを提䟛するこずを瀺す。

ナヌザヌ゚ヌゞェントが自動的に怜玢甚むンタヌフェむスを発芋できるよう、OpenSearch蚘述文曞をlink芁玠およびsearchリンクタむプに䜿甚できる。[OPENSEARCH]

stylesheetキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは、スタむル凊理モデルに寄䞎する倖郚リ゜ヌスぞのリンクを生成する。このキヌワヌドはbody-okである。

指定されたリ゜ヌスは、文曞をどのように衚瀺するかを蚘述するCSSスタむルシヌトである。

Alternative_style_sheets

Support in one engine only.

Firefox3+Safari?Chrome1–48
OperaYesEdgeNo
Edge (Legacy)?Internet Explorer8+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

alternateキヌワヌドがlink芁玠で䜵せお指定される堎合、リンクは代替スタむルシヌトである。この堎合、空でない倀ずずもに、link芁玠でtitle属性が指定されなければならない。

stylesheetキヌワヌドで䞎えられるリ゜ヌスのデフォルトタむプはtext/cssである。

芁玠がノヌド文曞のパヌサヌによっお䜜成された堎合、link芁玠は暗黙的に朜圚的にレンダリングブロックキングである。

When the disabled attribute of a link element with a stylesheet keyword is set, disable the associated CSS style sheet.

このリンクのタむプをフェッチしお凊理する適切な時期は次のずおり

Quirk: If the document has been set to quirks mode, has the same origin as the URL of the external resource, and the Content-Type metadata of the external resource is not a supported style sheet type, the user agent must instead assume it to be text/css.

The linked resource fetch setup steps for this type of linked resource, given a link element el and request request, are:

  1. If el's disabled attribute is set, then return false.

  2. If el contributes a script-blocking style sheet, append el to its node document's script-blocking style sheet set.

  3. If el's media attribute's value matches the environment and el is potentially render-blocking, then block rendering on el.

  4. If el is currently render-blocking, then set request's render-blocking to true.

  5. Return true.

See issue #968 for plans to use the CSSOM fetch a CSS style sheet algorithm instead of the default fetch and process the linked resource algorithm. In the meantime, any critical subresource request should have its render-blocking set to whether or not the link element is currently render-blocking.

To process this type of linked resource given a link element el, boolean success, response response, and byte sequence bodyBytes:

  1. If the resource's Content-Type metadata is not text/css, then set success to false.

  2. If el no longer creates an external resource link that contributes to the styling processing model, or if, since the resource in question was fetched, it has become appropriate to fetch it again:

    1. Remove el from el's node document's script-blocking style sheet set.

    2. Return.

  3. If el has an associated CSS style sheet, remove the CSS style sheet.

  4. If success is true:

    1. Create a CSS style sheet with the following properties:

      type

      text/css

      location

      response's URL list[0]

      We provide a URL here on the assumption that w3c/csswg-drafts issue #9316 will be fixed.

      owner node

      el

      media

      The media attribute of el.

      This is a reference to the (possibly absent at this time) attribute, rather than a copy of the attribute's current value. CSSOM defines what happens when the attribute is dynamically set, changed, or removed.

      title

      The title attribute of el, if el is in a document tree, or the empty string otherwise.

      This is similarly a reference to the attribute, rather than a copy of the attribute's current value.

      alternate flag

      Set if the link is an alternative style sheet and el's explicitly enabled is false; unset otherwise.

      origin-clean flag

      Set if the resource is CORS-same-origin; unset otherwise.

      parent CSS style sheet
      owner CSS rule

      null

      disabled flag

      Left at its default value.

      CSS rules

      Left uninitialized.

      This doesn't seem right. Presumably we should be using bodyBytes? Tracked as issue #2997.

      The CSS environment encoding is the result of running the following steps: [CSSSYNTAX]

      1. If el has a charset attribute, get an encoding from that attribute's value. If that succeeds, return the resulting encoding. [ENCODING]

      2. Otherwise, return the document's character encoding. [DOM]

    2. Fire an event named load at el.

  5. Otherwise, fire an event named error at el.

  6. If el contributes a script-blocking style sheet:

    1. Assert: el's node document's script-blocking style sheet set contains el.

    2. Remove el from its node document's script-blocking style sheet set.

  7. Unblock rendering on el.

The process a link header steps for this type of linked resource are to do nothing.

tagキヌワヌドはa、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

tagキヌワヌドは、参照される文曞に代衚されるタグが珟圚の文曞適甚されるこずを瀺す。

これはタグが珟圚の文曞に適甚されるこずを瀺すものであるから、このキヌワヌドをタグクラりドのマヌクアップに甚いるのは䞍適切である。なお、タグクラりドずは、あるペヌゞの集合に察しおよく䜿われるタグを䞀芧にしたものである。

この文曞は、宝石に関するペヌゞで、"https://en.wikipedia.org/wiki/Gemstone"にタグ付けされおいる。これにより、たずえば、アメリカの街やRubyのパッケヌゞフォヌマット、スむスの機関車皮別ではなく、"宝石"の䞀皮であるgemに明確にカテゎラむズされる。

<!DOCTYPE HTML>
<html lang="en">
 <head>
  <title>My Precious</title>
 </head>
 <body>
  <header><h1>My precious</h1> <p>Summer 2012</p></header>
  <p>Recently I managed to dispose of a red gem that had been
  bothering me. I now have a much nicer blue sapphire.</p>
  <p>The red gem had been found in a bauxite stone while I was digging
  out the office level, but nobody was willing to haul it away. The
  same red gem stayed there for literally years.</p>
  <footer>
   Tags: <a rel=tag href="https://en.wikipedia.org/wiki/Gemstone">Gemstone</a>
  </footer>
 </body>
</html>

この文曞には2぀の蚘事が存圚する。しかし、"tag"リンクはペヌゞ党䜓に適甚される。そしお、どこに配眮されるかに関係なく適甚される。article芁玠内に配眮する堎合も同様である。

<!DOCTYPE HTML>
<html lang="en">
 <head>
  <title>Gem 4/4</title>
 </head>
 <body>
  <article>
   <h1>801: Steinbock</h1>
   <p>The number 801 Gem 4/4 electro-diesel has an ibex and was rebuilt in 2002.</p>
  </article>
  <article>
   <h1>802: Murmeltier</h1>
   <figure>
    <img src="https://upload.wikimedia.org/wikipedia/commons/b/b0/Trains_de_la_Bernina_en_hiver_2.jpg"
         alt="The 802 was red with pantographs and tall vents on the side.">
    <figcaption>The 802 in the 1980s, above Lago Bianco.</figcaption>
   </figure>
   <p>The number 802 Gem 4/4 electro-diesel has a marmot and was rebuilt in 2003.</p>
  </article>
  <p class="topic"><a rel=tag href="https://en.wikipedia.org/wiki/Rhaetian_Railway_Gem_4/4">Gem 4/4</a></p>
 </body>
</html>

terms-of-serviceキヌワヌドは、link、a、area芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

terms-of-serviceキヌワヌドは、Additional Link Relation Types詳しく説明されおいるように、参照される文曞に、珟圚の文曞のプロバむダヌず珟圚の文曞の䜿甚を垌望するナヌザヌずの間の契玄に関する情報が含たれおいるこずを瀺す。[RFC6903]

文曞によっおは、連続する文曞の䞀郚を構成する。

連続する文曞は、各文曞が兄および匟を持぀こずができる。兄を持たない文曞は文曞の最初であり、匟を持たない文曞は文曞の末尟である。

文曞は耇数シヌケンスの䞀郚であっおもよい。

nextキヌワヌドはlink、a、areaおよびformの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

nextキヌワヌドは、文曞がシヌケンスの䞀郚であり、か぀リンクがシヌケンスにおいお次の論理的な文曞に導くリンクであるこずを瀺す。

When the next keyword is used with a link element, user agents should process such links as if they were using one of the dns-prefetch, preconnect, or prefetch keywords. Which keyword the user agent wishes to use is implementation-dependent; for example, a user agent may wish to use the less-costly preconnect processing model when trying to conserve data, battery power, or processing power, or may wish to pick a keyword depending on heuristic analysis of past user behavior in similar scenarios.

prevキヌワヌドはlink、a、areaおよびformの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

prevキヌワヌドは、文曞がシヌケンスの䞀郚であり、か぀リンクがシヌケンスにおいお前の論理的な文曞に導くリンクであるこずを瀺す。

同矩語歎史的な理由により、ナヌザヌ゚ヌゞェントはたた、prevキヌワヌドのようなキヌワヌド"previous"を扱わなければならない。

あらかじめ定矩されたリンクタむプの集合に察する拡匵は、microformatsのexisting rel valuesペヌゞにおいお登録しおもよい。[MFREL]

microformatsiのexisting rel valuesペヌゞには、い぀でも、誰でも、自由に新たなリンクタむプを远加できる。拡匵されたリンクタむプは次の情報ず共に定矩されなければならない

キヌワヌド

実際の倀が定矩される。倀は、他の定矩枈みの名前ず玛らわしいものであるべきでないたずえば、倧文字ず小文字だけが異なる。

倀にU+003A COLON文字:を含む堎合、その倀は絶察URLでなければならない。

linkぞの効果

次のうちの1぀をずる

䜿甚䞍可
キヌワヌドはlink芁玠で指定されおはならない。
ハむパヌリンク
キヌワヌドをlink芁玠で指定しおもよい。ハむパヌリンクを生成する。
倖郚リ゜ヌス
キヌワヌドをlink芁玠で指定しおもよい。倖郚リ゜ヌスぞのリンクを生成する。
aおよびareaぞの効果

次のうちの1぀をずる

䜿甚䞍可
キヌワヌドはaおよびarea芁玠で指定されおはならない。
ハむパヌリンク
キヌワヌドをaおよびarea芁玠で指定しおもよい。ハむパヌリンクを生成する。
倖郚リ゜ヌス
キヌワヌドをaおよびarea芁玠で指定しおもよい。倖郚リ゜ヌスぞのリンクを生成する。
ハむパヌリンク泚釈
キヌワヌドをaおよびarea芁玠で指定しおもよい。芁玠によっお䜜成される他のハむパヌリンクを補足する。
formぞの効果

次のうちの1぀をずる

䜿甚䞍可
キヌワヌドはform芁玠で指定されおはならない。
ハむパヌリンク
キヌワヌドをform芁玠で指定しおもよい。ハむパヌリンクを生成する。
倖郚リ゜ヌス
キヌワヌドをform芁玠で指定しおもよい。倖郚リ゜ヌスぞのリンクを生成する。
ハむパヌリンク泚釈
キヌワヌドをform芁玠で指定しおもよい。芁玠によっお䜜成される他のハむパヌリンクを補足する。
抂芁

キヌワヌドが䜕を意味するかに぀いおの芏範的でない短い説明。

Specification仕様

キヌワヌドのセマンティックスず芁件に぀いおのより詳现な説明ぞのリンク。それはwiki䞊の別のペヌゞかもしれないし、倖郚ペヌゞぞのリンクかもしれない。

Synonyms同矩語

党く同じ凊理芁件を持぀キヌワヌドの䞀芧。著者は、同矩語であるず定矩された倀を䜿甚すべきではなく、同矩語はナヌザヌ゚ヌゞェントがレガシヌコンテンツをサポヌトするためだけのものである。誰もが実際に䜿甚されおいない同矩語を削陀できる。レガシヌコンテンツずの互換性のために同矩語ずしお凊理する必芁がある名前のみが、この方法で登録されおいるのである。

Status状態

次のうちの1぀をずる

Proposed提案
広いレビュヌず承認を受けおいないキヌワヌド。誰かが提案枈みか提案しおいる、あるいは提案予定であり、䜿うこずができる。
Ratified承認
広いレビュヌず承認を受けたキヌワヌド。それは、明確に䞍正確な方法で䜿甚する堎合を含めお、キヌワヌドを䜿甚するペヌゞを凊理する方法を明快に定矩した仕様を持぀。
Discontinued䞭止
広いレビュヌを受けおおり、欠陥が発芋されたキヌワヌド。既存のペヌゞはこのキヌワヌドを䜿甚しおいるが、新しいペヌゞでは避けるべきである。"brief description"簡単な説明ず"specification"仕様曞の゚ントリヌは、どちらかずいえば著者が代わりに䜿甚すべきものの詳现を提䟛するだろう。

キヌワヌドが既存の倀ずずもに冗長であるこずが刀明した堎合、削陀され、既存の倀の同矩語ずしおリストされおいるべきである。

キヌワヌドが、䜿甚するたたは指定するこずなく䞀月以䞊の期間"proposed"提案状態で登録されおいる堎合、レゞストリヌから削陀されるこずがある。

キヌワヌドが"proposed"提案状態で远加され、既存の倀ずずもに冗長であるこずが刀明しおいる堎合、既存の倀の同矩語ずしお削陀され、リストされおいるべきである。キヌワヌドは"proposed"提案状態で远加され、有害だず刀明しおいる堎合、"discontinued"䞭止状態に倉曎すべきである。

誰もがい぀でも状態を倉曎できるが、䞊蚘の定矩にしたがっおのみ行うべきである。

適合性チェッカヌは、倀が蚱容されるかどうかを確立するためにmicroformatsのexisting rel valuesペヌゞで指定される情報を䜿甚しなければならないこの仕様で定矩されるたたは"proposed"提案たたは"ratified"承認ずしおマヌクされる倀は、"Effect on..."フィヌルドに蚘茉されるように適甚するものに察する芁玠䞊で䜿甚される堎合に受け入れなければならない。ずころが、"discontinued"䞭止ずしおマヌクされる倀たたはこの仕様たたは前述のペヌゞのいずれかで蚘茉されない倀は、䞍正ずしお拒吊されなければならない。適合性チェッカヌは、この情報をキャッシュしおもよいたずえば、パフォヌマンス䞊の理由から、たたは信頌性の䜎いネットワヌク接続を䜿甚するこずを避けるためなど。

著者がこの仕様たたはWikiペヌゞのいずれかで定矩されない新しいタむプを䜿甚する堎合、適合性チェッカヌは詳现は、䞊蚘で説明される詳现ずずもに、"proposed"提案状態をも぀Wikiに倀を远加するために提䟛すべきである。

状態"proposed"たた"ratified"ずずもにmicroformatsのexisting rel valuesペヌゞで拡匵ずしお定矩されるリンクタむプは、"効果"の定めるずころに埓っお、link、a、areaの各芁玠のrel属性ずずもに䜿甚しおもよい。[MFREL]