- Timestamp:
- 03/06/07 01:05:42 (23 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/fast/dom/HTMLDocument/document-special-properties.html
r11995 r19979 33 33 <img name="image5" width="0" height="0"> 34 34 <img id="image5" width="0" height="0"> 35 <img id="image6" name="image6name" width="0" height="0"> 36 <img id="image7" name="" width="0" height="0"> 37 <img id="image8" name="image8name" width="0" height="0"> 38 <img id="image8" width="0" height="0"> 39 <img id="image8" name="image7name" width="0" height="0"> 40 <img id="image9" name="image9name" width="0" height="0"> 35 41 36 42 <form name="form1" width="0" height="0"></form> … … 151 157 print(" " + e.tagName); 152 158 153 if (e.name && e.id) {154 print("(id,name)");155 } else if (e.name) {156 print("(name)");159 if (e.name && e.id) { 160 print("(id,name)"); 161 } else if (e.name) { 162 print("(name)"); 157 163 } else if (e.id) { 158 print("(id)");159 }164 print("(id)"); 165 } 160 166 } else if (e.navigator) { 161 167 print(" WINDOW"); … … 174 180 } else if (propVal.length) { 175 181 print(" collection(" + propVal.length + ")"); 176 for (var i = 0; i < propVal.length; i++) {177 printElement(propVal[i]);178 }182 for (var i = 0; i < propVal.length; i++) { 183 printElement(propVal[i]); 184 } 179 185 } else { 180 186 print(" single"); 181 printElement(propVal);187 printElement(propVal); 182 188 } 183 189 … … 191 197 testProperty("Image by id (multiple)", "image4"); 192 198 testProperty("Image by id/name mixed", "image5"); 199 testProperty("Image by id, name present (unique)", "image6"); 200 testProperty("Image by id, empty name present (unique)", "image7"); 201 testProperty("Image by id, name present (multiple)", "image8"); 202 testProperty("Image by name, id present (unique)", "image9name"); 203 193 204 print("<br>"); 194 205