/
77.txt
62 lines (45 loc) · 2.65 KB
/
77.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
* 仕様書
[REFS[
- [1] [CITE@en-US[DOM Standard]] ([TIME[2014-09-14 14:03:21 +09:00]] 版) <https://dom.spec.whatwg.org/#dom-document-url>
- [2] [CITE@en-US[DOM Standard]] ([TIME[2014-09-14 14:03:21 +09:00]] 版) <https://dom.spec.whatwg.org/#concept-document-url>
- [3] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2014-09-16 21:36:14 +09:00]] 版) <https://html.spec.whatwg.org/#documents>
]REFS]
* [CODE(JS)@en[document.URL]]
[4]
[[DOM HTML]]、[[Firefox]] 2.0、[[Opera]] 9 では
[CODE(DOMa)@en[[[URL]]]] [[属性]]を[[読取専用]]としていますが、
[[WinIE 6]] では値の[[設定]]もできます。
[CODE(JS)@en[[CODE(DOMa)@en[[[location]]]].[CODE(DOMa)@en[[[href]]]]]]
のように、与えられた [[URI]] に[[遷移]]します。
;;
<http://suika.fam.cx/~wakaba/-temp/test/dom/document/meta/url/set-http-1.html>
[7] [CITE@en-us[url Property (DOMDocument)]]
( ([TIME[2013-05-12 05:14:37 +09:00]] 版))
<http://msdn.microsoft.com/en-us/library/ms767669(v=vs.85).aspx>
* [CODE(JS)@en[document.documentURI]]
[12] [[Firefox]] 2.0 と [[Opera]] 9 は [CODE(DOMa)@en[[[documentURI]]]]
[[属性]]を実装しています。 [[WinIE 6]] は実装していません。
;;
<http://suika.fam.cx/~wakaba/-temp/test/dom/document/meta/document-uri/get-1.html>
[13] >>12 いずれも、値の設定はできないようです。
;;
<http://suika.fam.cx/~wakaba/-temp/test/dom/document/meta/document-uri/set-http-1.html>
* 歴史
[5] [CITE[''''''[''''''whatwg'''''']'''''' Reconcile document.URL and document.documentURI?]]
( ([TIME[2012-01-14 12:22:47 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-January/034377.html>
[6] [CITE@en[Web Applications 1.0 r7145 sync with dom core]]
( ([TIME[2012-06-27 04:29:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=7144&to=7145>
[8] [CITE@en[Web Applications 1.0 r7159 Turns out that browsers don't distinguish between the 'document's address' and the 'documents's current address', so we can merge them.]]
( ([TIME[2012-06-29 10:23:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=7158&to=7159>
[9] [CITE[''''''[''''''whatwg'''''']'''''' Document's base URI should use the document's *current* address]]
( ([TIME[2012-06-29 17:17:08 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-June/036504.html>
[10] [CITE[IRC logs: freenode / #whatwg / 20120629]]
( ([TIME[2012-07-15 16:06:48 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120629>
[11] [CITE[IRC logs: freenode / #whatwg / 20130117]]
( ([TIME[2013-01-18 21:01:10 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130117#l-766>