So here is something I don't quite understand. According to [1],
"input:disabled" is a quite valid CSS selector. 

Given this[2]:

<html><body>
<style>input:disabled {background: #0F0; color: #F00;}</style>
<input type="text"   id="greenjunk" name="greenjunk" value="nada"   disabled />
<input type="text"   id="name"      name="name"      value="Joe"             />
<input type="submit" id="submit"    name="submit"    value="submit"          />
</body></html>

Why wouldn't doc.css("input:disabled") also work? Clearly it doesn't,
but I don't know what it *should* be. (Noting that xpath would be quite
different, of course.)



[1] https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled
[2] see this ugly thing at 
https://dl.dropboxusercontent.com/u/571329/Examples/greenjunk.html

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/51aa4e42.2a14320a.32a4.ffffc476%40mx.google.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to