Lines Matching refs:base

1 description('Tests that when an href attribute is set, the href is no longer subject to updates to the document base URI.');
4 var base = document.createElement('base');
5 document.head.appendChild(base);
8 debug("Search attribute, update document base URI without attribute having been set");
9 base.href = "http://old_base/";
11 base.href = "http://new_base/";
14 debug("Search attribute, update document base URI after attribute has been set");
15 base.href = "http://old_base/";
18 base.href = "http://new_base/";
23 debug("Pathname attribute, update document base URI without attribute having been set");
24 base.href = "http://old_base/";
26 base.href = "http://new_base/";
29 debug("Pathname attribute, update document base URI after attribute has been set");
30 base.href = "http://old_base/";
33 base.href = "http://new_base/";
38 debug("Hash attribute, update document base URI without attribute having been set");
39 base.href = "http://old_base/";
41 base.href = "http://new_base/";
44 debug("Pathname attribute, update document base URI after attribute has been set");
45 base.href = "http://old_base/";
48 base.href = "http://new_base/";
53 debug('Note that for the following attributes, updating the document base URI has no effect because we have to use an abosulte URL for the href in order to set an initial value for the attribute we wish to update. They are included for completeness.');
57 debug("Host attribute, update document base URI without attribute having been set");
58 base.href = "http://old_base/";
60 base.href = "http://new_base/";
63 debug("Host attribute, update document base URI after attribute has been set");
64 base.href = "http://old_base/";
67 base.href = "http://new_base/";
72 debug("Hostname attribute, update document base URI without attribute having been set");
73 base.href = "http://old_base/";
75 base.href = "http://new_base/";
78 debug("Hostname attribute, update document base URI after attribute has been set");
79 base.href = "http://old_base/";
82 base.href = "http://new_base/";
87 debug("Protocol attribute, update document base URI without attribute having been set");
88 base.href = "http://old_base/";
90 base.href = "http://new_base/";
93 debug("Protocol attribute, update document base URI after attribute has been set");
94 base.href = "http://old_base/";
97 base.href = "http://new_base/";
102 debug("Port attribute, update document base URI without attribute having been set");
103 base.href = "http://old_base/";
105 base.href = "http://new_base/";
108 debug("Port attribute, update document base URI after attribute has been set");
109 base.href = "http://old_base/";
112 base.href = "http://new_base/";
117 base.href = '';