Opened 12 years ago
Last modified 12 years ago
#8089 closed bug
.attr(map): Quotes seem not to be optional — at Initial Version
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Don't know whether this is a bug in jquery, a bug in the api-documentation http://api.jquery.com/attr/ or just a missing feature, but I thought it is worth reporting:
This does not work without quotes: $mydialog.attr({
role : 'dialog', aria-hidden : 'false', aria-labelledby : 'top'
});
Error in line aria-hidden: Missing : after property id
It works with quotes only:
$mydialog.attr({
'role' : 'dialog', 'aria-hidden' : 'false', 'aria-labelledby' : 'top'
});
Note: See
TracTickets for help on using
tickets.