Skip to main content

Bug Tracker

Side navigation

#9526 closed bug (invalid)

Opened June 06, 2011 03:53PM UTC

Closed June 21, 2011 07:52AM UTC

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

Reported by: andy kay Owned by: andy kay
Priority: low Milestone:
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" "">

<html xmlns="">


<title>attribute test</title>

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



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


<script type="text/javascript">


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




Attachments (0)
Change History (2)

Changed June 06, 2011 04:00PM UTC by rwaldron comment:1

component: unfiledattributes
owner: → andy kay
priority: undecidedlow
status: newpending

Works for me:

Can you confirm this test case?

Changed June 21, 2011 07:52AM UTC by trac-o-bot comment:2

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!