Do we really need to use content attributes? I suppose we can always use IDL. 
For example:

```ruby
driver.find_element(css: 'meta').attribute('http-equiv') #=> nil
driver.find_element(css: 'meta').attribute('httpEquiv') #=> ""
```

```ruby
driver.find_element(css: 'table').attribute('colSpan') #=> nil
driver.find_element(css: 'table td').attribute('colSpan') #=> "1"
```

```ruby
driver.find_element(css: 'label').attribute('for') #=> "cdr_min"
driver.find_element(css: 'label').attribute('htmlFor') #=> "cdr_min"
```

Except to `httpEquiv`, everything looks ok to me and by using IDL attributes, 
we can avoid writing custom attribute getters like 
[colspan](https://github.com/watir/watir-webdriver/blob/master/lib/watir-webdriver/elements/table_cell.rb#L10)
 since it's already handled.

P.S. Along with [YARD 
improvements](https://github.com/watir/watir-webdriver/blob/yard-friendly-code-generation),
 I'm pushing the changes to always use explicit IDL attribute. Please take a 
look, I might be unaware of the actual issues with IDL, but it seems fine to me.

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/28#issuecomment-34476611
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to