-
Notifications
You must be signed in to change notification settings - Fork 4
/
785.txt
65 lines (49 loc) · 2.8 KB
/
785.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
* 仕様書
[REFS[
- [7] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2015-05-06 10:42:35 +09:00]] 版) <https://html.spec.whatwg.org/#dom-media-getsvgdocument>
]REFS]
* 処理
[9] [CODE(DOMi)@en[HTMLEmbedElement]] [[インターフェイス]]の
[CODE(DOMm)@en[getSVGDocument]] [[メソッド]]は、
次のようにしなければ[MUST[なりません]] [SRC[>>7]]。
[FIG(steps)[
= [10]
[FIG(list)[
- [11] [[文脈オブジェクト]]の[F[入れ子閲覧文脈]]が [[null]] 以外
- [12] [[文脈オブジェクト]]の[F[入れ子閲覧文脈]]の[F[活性文書]]の[F[起源][文書の起源]]が[[文脈オブジェクト]]の[F[節点文書]]の[F[起源][文書の起源]]と[[同じ起源ドメイン]]
- [14] [[文脈オブジェクト]]の[F[入れ子閲覧文脈]]の[F[活性文書]]の[F[[[SVG]] [[navigate]] フラグ]]が設定されている
]FIG]
... のすべての条件を満たせば、
== [15] [[文脈オブジェクト]]の[F[入れ子閲覧文脈]]の[F[活性文書]]を返します。
= [13] それ以外なら、
== [16] [[null]] を返します。
]FIG]
;; [18] [CODE(DOMa)@en[contentDocument]] と微妙に判定条件が違っています。
* 関連
[17] [CODE(DOMa)@en[contentDocument]] も参照。
普通はそちらの方が使い勝手が良さそうです。
* 歴史
[1] [CITE[Document Structure – SVG 1.1 (Second Edition)]]
( ([TIME[2011-08-10 12:35:27 +09:00]] 版))
<http://www.w3.org/TR/2011/REC-SVG11-20110816/struct.html#InterfaceGetSVGDocument>
[2] [CITE@en[829872 – Consider returning null from contentDocument getters when the caller does not subsume the document]]
( ([TIME[2013-11-13 20:41:52 +09:00]] 版))
<https://bugzilla.mozilla.org/show_bug.cgi?id=829872>
[3] [CITE[IRC logs: freenode / #whatwg / 20140806]]
( ([TIME[2014-08-07 11:51:48 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140806#l-744>
[4] [CITE@en[Web Applications 1.0 r8713 getSVGDocument()]]
( ([TIME[2014-08-07 03:26:00 +09:00]] 版))
<http://html5.org/r/8713>
[5] [CITE@en[Web Applications 1.0 r8811 Add getSVGDocument() to object and iframe also, with the same definition as for embed.]]
( ([TIME[2014-09-25 04:02:00 +09:00]] 版))
<https://html5.org/r/8811>
[6] [CITE@en[Web Applications 1.0 r8814 getSVGDocument() can return null (IDL fix).]]
( ([TIME[2014-09-25 05:14:00 +09:00]] 版))
<https://html5.org/r/8814>
[8] [CITE@en[Merge effective script origin into origin · whatwg/html@8a843f2]]
([TIME[2016-03-31 16:40:05 +09:00]] 版)
<https://github.com/whatwg/html/commit/8a843f2169a6864a3024c4329528dccb2051d275>
[19] [CITE@en[Allow PaymentRequest and getUserMedia for same origin-domain subdocum…]]
([[zcorpan]]著, [TIME[2017-01-26 02:36:45 +09:00]])
<https://github.com/whatwg/html/commit/ffae69861afaff9ca1c1f058f1d7af95412f60fa>