Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: LayoutTests/fast/forms/form-radio-img-node-list.html

Issue 354813004: Add missing owner check to form's "named property retrieval" over images. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Shorten out single-use local binding; no change in functionality. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-radio-img-node-list-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <img name=outside1></img>
3 <form id="f1"> 4 <form id="f1">
4 <button id=n1></button> 5 <button id=n1></button>
5 <keygen id=n1></keygen> 6 <keygen id=n1></keygen>
6 <output id=n1></output> 7 <output id=n1></output>
7 <object name=n1></object> 8 <object name=n1></object>
8 <select name=n1><option id=n1></option></select> 9 <select name=n1><option id=n1></option></select>
9 <input name=n1 type=hidden> 10 <input name=n1 type=hidden>
10 <input name=n1 type=image> 11 <input name=n1 type=image>
11 <input name=n1 type=text> 12 <input name=n1 type=text>
12 <input name=n2 type=image> 13 <input name=n2 type=image>
13 <img name=n2></img> 14 <img name=n2></img>
14 <img id=n2></img> 15 <img id=n2></img>
15 </form> 16 </form>
17 <!-- The img element isn't 'reassociatable'; add @form to verify it is so. -->
18 <img name=n2 form=f1></img>
16 <script> 19 <script>
17 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.") ; 20 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.") ;
18 21
19 var radioNodeList; 22 var radioNodeList;
20 23
21 function shouldBeImgElement(n) { 24 function shouldBeImgElement(n) {
22 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement"); 25 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement");
23 } 26 }
24 27
25 function verifyLength(n) { 28 function verifyLength(n) {
(...skipping 11 matching lines...) Expand all
37 var button = document.createElement("button"); 40 var button = document.createElement("button");
38 button.name = "n2"; 41 button.name = "n2";
39 form.appendChild(button); 42 form.appendChild(button);
40 verifyLength(2); 43 verifyLength(2);
41 44
42 var img = document.createElement("img"); 45 var img = document.createElement("img");
43 img.name = "n2"; 46 img.name = "n2";
44 form.appendChild(img); 47 form.appendChild(img);
45 verifyLength(3); 48 verifyLength(3);
46 </script> 49 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-radio-img-node-list-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698