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: |
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>
Change History (2)
comment:1 Changed 12 years ago by
Component: | unfiled → attributes |
---|---|
Owner: | set to andy kay |
Priority: | undecided → low |
Status: | new → pending |
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
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!
Works for me:
http://jsfiddle.net/rwaldron/zN7jQ/
Can you confirm this test case?