* 仕様書

[REFS[
- [1] [CITE@en[Web Annotation Data Model]] ([TIME[2017-02-24 02:14:26 +09:00]]) <https://w3c.github.io/web-annotation/model/wd2/#h-selectors>
- [2] [CITE@en[Web Annotation Vocabulary]]
([TIME[2017-02-24 02:14:26 +09:00]])
<https://w3c.github.io/web-annotation/vocab/wd/#h-selector>
- [3] [CITE@en[Embedding Web Annotations in HTML]]
([TIME[2017-02-24 02:14:26 +09:00]])
<https://w3c.github.io/web-annotation/serialization-html-note/#h-web-annotation-based-citation-urls>
- [4] [CITE@en[Selectors and States]]
([TIME[2017-02-24 02:14:26 +09:00]])
<https://w3c.github.io/web-annotation/selector-note/#h-selectors>
]REFS]

* 素片識別子構文

[5] [DFN[[CODE[selector()]]]] という独自の[[素片識別子]]構文
[SRC[>>4]] を規定しています。

> follows the same, “functional” syntax as used, for example, by the XPointer Framework [xptr-framework]

... と説明されており [SRC[>>4]]、 [[XPointer]] を参照していますが、 [[XPointer scheme]]
であるとは述べていません。またその『「関数型」構文』も例示だけで実質的な規定が何もないという、
いくら [[W3C]] [[WG Note]] とはいえ事実上実装不能な杜撰な[[仕様書]]です。

;; [7] [[W3C]] の [[XPointer登録簿]]にも登録されていません。

[6] 実際に採用する [[MIME型]]がなければ使えない [SRC[>>4]] と[[MIME型]]と[[素片識別子]]の原則に即した注記をしつつも、
他の [[WG Note]] では明らかに [[HTML文書]]らしき [[URL]] で本構文を使った例文が示されています
[SRC[>>3]]。しかし [[HTML]] の[[素片識別子]]構文として正式に採用されることを目指した動きは今のところなさそうです。

* 関連

[8] 同じく [[W3C]] で[[標準化]]され [[CSS]] や [[DOM]] で使われている [[Selectors]]
は、 [[CssSelector]] という名称で本項の「Selector」の一構成機能となっています。
なぜ後発の本機能が敢えて衝突する名称を採用したのかは不明です。

* 歴史

[9] [CITE@en-US[Locators for Web Publications]]
([TIME[2017-10-30 17:25:54 +09:00]])
<https://w3c.github.io/publ-loc/>

[10] [CITE@en[Selectors and States]]
([TIME[2017-02-22 14:03:28 +09:00]])
<https://www.w3.org/TR/selectors-states/>