-
Notifications
You must be signed in to change notification settings - Fork 4
/
822.txt
39 lines (27 loc) · 2.01 KB
/
822.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
* 歴史
- [1] [CODE(ABNF)[[DFN[16進文字参照]] := [CODE(SGML)[[[hero]]]] 1*hexdigit [[参照終了]] ;; [[WebSGML]] [62.3] ]]
- [2] [CODE(ABNF)[[DFN[hexdigit]] := [[DIGIT]] / "A" / "B" / "C" / "D" / "E" / "F" ;; K.4.1 [[具象構文]]にかかわらず大文字・小文字を区別しない。]]
- [3] [CODE(ABNF)[1*hexdigit]] は [CODE(SGML)[[[NAMELEN]]]] 以下でなければなりません。 (K.4.1 参照)
[4] <http://groups.google.co.jp/groups?threadm=8h2vsl%24l2m%241%40pooh.isoternet.org>
;; 当時の [[Webブラウザ]]の対応状況、 [[mimasa]] 氏が[[十六進数文字参照]]を利用可能になるように
[[ISO-HTML]] の中の人に頼んだ話題などがあります。
[5] [[RFC 5137]] ([[BCP 137]]) は [[Unicode]] [[文字]]の [[escape]]
のための構文として勧められるものを2つ挙げていますが、そのうちの1つが
[[HTML]]・[[XML]] 式の[[十六進数文字参照]]です。
;; ちなみにもう1つは「[[\u]]'HHHH'」 という、他では見たことがない奇妙な書式です。
構文は次のように定義されています。
EmbeddedUnicodeChar = %x26.23.78 2*6[[HEXDIG]] %x3B
; starts with "&#x" and ends with ";"
[[XML]] の書式といっていますが、2桁以上6桁未満という制約がついています。
[[HTML]] とは違って[[セミコロン]]が必要だとも書かれているのですが
(なぜか [['''SHOULD''']])、
「x」が[[小文字]]でなければならない点も違いです。
[6] [CITE@en[Editorial: hexademical ➡️ hexadecimal]]
([[Yay295]]著, [TIME[2018-09-10 21:31:47 +09:00]])
<https://github.com/whatwg/html/commit/ede3f6161e574b2ea71b090f512d796f0e893a3a>
[7] [CITE@en["Hexademical character reference start state" · Issue #4006 · whatwg/html]]
([TIME[2018-10-17 13:03:32 +09:00]])
<https://github.com/whatwg/html/issues/4006>
[8] [CITE@en[fix #4006 by Yay295 · Pull Request #4012 · whatwg/html]]
([TIME[2018-10-17 13:03:38 +09:00]])
<https://github.com/whatwg/html/pull/4012>