-
Notifications
You must be signed in to change notification settings - Fork 4
/
51.txt
85 lines (60 loc) · 3.84 KB
/
51.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
* 歴史
** W3C DOM 時代
[1] [[DOM1]] では、[RUBYB[文字データ区間節] [[CODE(DOM)[CDATASection]] node]]はどんな種類の子[[節]]も持つことは出来ません。
[2] 文字データ (CDATA) 区間節点は [[XML]] の[[文字データ区間]]
([[CDATA]] [[マーク区間]]) に対応しています。
[3] [CODE(DOM)[CDATASection]] 界面は、 [CODE(DOM)[[[Text]]]]
界面を継承します。 (しかしながら、 method
[CODE[[VAR(DOM)[[[Element]]]].[CODE(DOM)[[[normalize]]]] ()]]
は隣接する文字データ区間を統合したりはしません。
[CODE(DOM)[normalize()]] は [CODE(DOM)[Text]]
節に作用するのであって、 [CODE(DOM)[Text]]
界面の実現値に作用するのではないようです。)
[4] DOM 1 では、拡張界面に分類されており、 DOM 1 HTML
だけの実装ではわざわざ実装しなくてもいいとされています。
(DOM で扱う HTML には [CODE(SGML)[CDATA]]
マーク区間は出てこないみたいです。)
-[DOM1] ''Document Object Model (Core) Level 1'' <http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-667469212>
- [5] DOM 1 仕様書は、文書を出力する [[charset]] によっては、 CDATA マーク区間内の文字を出力できないかもしれない ([[数値文字参照]]に出来ないから。) ことに注意を促しています。
- [6] [DOM2] ''Document Object Model Core'' <http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-667469212>
*** [CODE(DOMm)@en[createCDATASection]] メソッド
[12] [[WinIE]] 6 は[[メソッド]]自体ないようです。
[[Firefox]] 1.5 は [[HTML]] では [CODE(DOMc)@en[[[NOT_SUPPORTED_ERR]]]] になります。
[[XML]] ではおk。
[[Opera]] 9 は [[HTML]] でも [[XML]] でもおk。
** 廃止の試み
[7] [CITE[IRC logs: freenode / #whatwg / 20080621]]
( ([TIME[2013-05-22 12:37:28 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20080621#l-134>
[8] [CITE[660660 – Remove CDATASection]]
( ([TIME[2013-01-02 05:21:20 +09:00]] 版))
<https://bugzilla.mozilla.org/show_bug.cgi?id=660660>
[9] [CITE[IRC logs: freenode / #whatwg / 20141124]]
( ([TIME[2014-11-25 12:29:29 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20141124#l-171>
[10] [CITE@en[Web Applications 1.0 r6945 Sync with DOM Core: Remove all vestiges of CDATASection objects and Entity objects; replace all mentions of 'text nodes' with explicit references to Text nodes.Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14859]]
( ([TIME[2012-02-01 04:36:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6944&to=6945>
[13] [CITE[IRC logs: freenode / #whatwg / 20141127]]
( ([TIME[2014-11-29 11:24:43 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20141127#l-359>
[14] [CITE@en[27386 – Removing createCDATASection() unlikely to be successful]]
([TIME[2015-08-04 13:22:23 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=27386>
[11] [CITE@en[Reinstate CDATASection]]
([[annevk]]著, [TIME[2016-08-16 21:40:58 +09:00]])
<https://github.com/whatwg/dom/commit/53fb89841b902242efdb0c6bb456543fdaa19462>
[15] [CITE@en[Define nodeName as "#cdata-section" for CDATASection nodes]]
([[foolip]]著, [TIME[2016-08-17 20:34:46 +09:00]])
<https://github.com/whatwg/dom/commit/67a7550d757b4194a8248b336944292586fdc117>
[16] [CITE@en[CDATASection nodes don't like to be normalized away]]
([[annevk]]著, [TIME[2016-09-01 16:55:38 +09:00]])
<https://github.com/whatwg/dom/commit/e8d5e65fd890ec0ba9299d7b63e911c3187275f9>
[FIG(quote)[
[FIGCAPTION[
[17] [CITE[XLIFF Version 2.0]]
([TIME[2014-08-06 01:00:00 +09:00]])
<http://docs.oasis-open.org/xliff/xliff-core/v2.0/os/xliff-core-v2.0-os.html#d0e7792>
]FIGCAPTION]
> Note that avoiding CDATA sections is considered a best practice from the internationalization viewpoint '''['''XML I18N BP''']'''.
]FIG]