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: 1.next
Component: attributes Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

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">

$(document).ready(function(){

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

});

</script>

</html>

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:

http://jsfiddle.net/rwaldron/zN7jQ/

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!