> This is why our implementation of getAttribute in Selenium2Driver uses JS to get the HTML attribute itself.

I know that. I've implemented it myself to have cross-driver consistent implementation. FYI: http://selenium.googlecode.com/git/docs/api/rb/Selenium/WebDriver/Element.html#attribute-instance_method