Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 span {color: red}
6 input[type=submit]:not([disabled]):not(:disabled) ~ span {color: green}
7 input[type=submit][disabled]:disabled + span {color: blue}
8 input[type=text] + span {color: red}
9 input { display: none }
10 </style>
11 </head>
13 <body onload='document.getElementById("one").setAttribute("type", "submit");
14 document.getElementById("two").setAttribute("type", "submit");
15 document.getElementById("two").setAttribute("disabled", "disabled");
16 document.getElementById("one").removeAttribute("disabled");'>
17 <input type="text" id="one" disabled="disabled"/>
18 <span>Should be no red </span><br>
19 <span>Should be no red </span><br>
20 <input type="text" id="two"/>
21 <span>Should be no red </span>
22 </body>
23 </html>