Modify ↓
Ticket #9558 (closed bug: invalid)
1.6.1 Getting the value of unexisting attribute is causing - ... is not defined
| Reported by: | anonymous | Owned by: | anonymous |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | attributes | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Example:
$(document).ready(function(){
$("a").each(function(){
var rel = $(this).attr("rel");
if(rel=="Some String"){
/* if the rel attribute doesn't exists, it's causing an error */
}
});
});
Change History
comment:1 Changed 2 years ago by addyosmani
- Owner set to anonymous
- Priority changed from undecided to low
- Status changed from new to pending
- Component changed from unfiled to attributes
comment:2 Changed 2 years ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
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!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Thanks for submitting a ticket to the jQuery Project!. I've recreated your test case here: http://jsfiddle.net/addyosmani/VeAVb/, but haven't been able to reproduce the issue you're experiencing. Could you confirm which browser/version/platform you're seeing it on?