Skip to main content

Bug Tracker

Side navigation

#9780 closed bug (invalid)

Opened July 07, 2011 10:42PM UTC

Closed July 07, 2011 10:47PM UTC

attr not working in 1.6.1 or 1.6.2 for custom attributes.

Reported by: mickey.kawick@gmail.com 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

Attachments (0)
Change History (1)

Changed July 07, 2011 10:47PM UTC by rwaldron comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → invalid
status: newclosed

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