Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13124 closed bug (notabug)

jQuery.attr invalid result for "checked" custom attribute...

Reported by: wes.baldwin@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

http://jsfiddle.net/wbaldwin/H58xL/

Notice the only difference between the two tests is the name of the custom attributes ("checked" and "isChecked"). isChecked works as expected - checked does not. Not only doesn't it parse the bool, it actully ignores the value completely, always returning "checked".

Change History (1)

comment:1 Changed 7 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

"checked" has special semantics in HTML, this is invalid.

Note: See TracTickets for help on using tickets.