Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9526 closed bug (invalid)

new attr() code converts value to lowercase prior to testing value for null

Reported by: andy kay Owned by: andy kay
Priority: low Milestone: 1.next
Component: attributes Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:


Load the page below in 1.6.1 and you'll get a null reference error from inside the attr() method.

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head>

<title>attribute test</title> <script src="jquery-1.6.1.js" type="text/javascript"></script>

</head> <body>

<input id="cb" name="cb" type="checkbox" checked="checked" />

</body> <script type="text/javascript">


$("#cb").attr("checked", null);


</script> </html>

Change History (2)

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledattributes
Owner: set to andy kay
Priority: undecidedlow
Status: newpending

Works for me:


Can you confirm this test case?

comment:2 Changed 12 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.