layout/reftests/forms/select/dynamic-boguskids.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <script>
michael@0 5 function doIt() {
michael@0 6 var insertions = [
michael@0 7 [ "opt1", "Shouldn't see me" ],
michael@0 8 [ "opt2", "Or me" ],
michael@0 9 [ "opt3", "I should hide too" ],
michael@0 10 [ "opt4", "And me too" ]
michael@0 11 ];
michael@0 12 for (var i = 0; i < insertions.length; ++i) {
michael@0 13 var next = document.getElementById(insertions[i][0]);
michael@0 14 next.parentNode.insertBefore(document.createTextNode(insertions[i][1]),
michael@0 15 next);
michael@0 16 }
michael@0 17 document.getElementById("sel").appendChild(document.createTextNode("And I"));
michael@0 18 }
michael@0 19 </script>
michael@0 20 </head>
michael@0 21 <body onload="doIt()">
michael@0 22 <select size="10" id="sel">
michael@0 23 <option id="opt1">one</option>
michael@0 24 <option id="opt2">two</option>
michael@0 25 <optgroup>
michael@0 26 <option id="opt3">three</option>
michael@0 27 <option id="opt4">four</option>
michael@0 28 </optgroup>
michael@0 29 </select>
michael@0 30 </body>
michael@0 31 </html>

mercurial