Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9780 closed bug (invalid)

attr not working in 1.6.1 or 1.6.2 for custom attributes.

Reported by: mickey.kawick@… Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Description

An example of this not working:

function toggleState() {

if($(button).attr('selected')){

$(button).removeAttr('selected');

} else {

$(button).attr('selected', 'selected');

}

}

Only tested in Chrome 12.0.742.112

Change History (1)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledattributes
Priority: undecidedlow
Resolution: invalid
Status: newclosed

"selected" is not a custom attribute and should only be used with option elements.

Note: See TracTickets for help on using tickets.