Ticket #9798 (closed bug: invalid)
selected attr defined on div returns undefined for .attr()
|Reported by:||drd||Owned by:|
Starting with 1.6.1, having a "selected" attribute on a <div> or <p> element returns undefined when using .attr() to retrieve the value of the attribute
Given: <div id="div1" selected="div1selected">
Executing: $('#div1').attr('selected') returns undefined
This was also true for a 'value' attribute in 1.6.1 but that appears to have been corrected in 1.6.2.
The code works as expected (returns the value of the attribute) in 1.5.2 and prior releases