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 label {color: red}
6 #one[disabled]:not(:enabled) + label {color: green}
7 #two:not([disabled]):enabled + label {color: green}
8 </style>
9 </head>
10 <body onload='var elem = document.getElementById("one");
11 elem.setAttribute("disabled", "disabled");
12 document.getElementById("two").removeAttribute("disabled")'>
13 <div>
14 <input id="one"/>
15 <label for="one">Should be no red</label>
16 </div>
17 <div>
18 <input id="two" disabled="disabled"/>
19 <label for="two">Should be no red</label>
20 </div>
21 </body>
22 </html>