Bug Tracker

Changes between Initial Version and Version 2 of Ticket #8089


Ignore:
Timestamp:
Jan 29, 2011, 6:38:06 AM (9 years ago)
Author:
jitter
Comment:

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

After checking your report I conclude that this isn't a bug in jQuery but, as Utkarsh already pointed out, invalid javascript syntax.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8089

    • Property Priority changed from undecided to low
    • Property Status changed from new to closed
    • Property Component changed from unfiled to attributes
    • Property Resolution changed from to invalid
  • Ticket #8089 – Description

    initial v2  
    22
    33This does not work without quotes:
     4{{{
    45$mydialog.attr({
    5   role            : 'dialog',
    6   aria-hidden     : 'false',
    7   aria-labelledby : 'top'
     6    role            : 'dialog',
     7    aria-hidden     : 'false',
     8    aria-labelledby : 'top'
    89});
    9 
    10 Error in line aria-hidden: Missing : after property id         
     10}}}
     11Error in line aria-hidden: `Missing : after property id`
    1112
    1213It works with quotes only:
    13 
     14{{{
    1415$mydialog.attr({
    15   'role'            : 'dialog',
    16   'aria-hidden'     : 'false',
    17   'aria-labelledby' : 'top'
     16    'role'            : 'dialog',
     17    'aria-hidden'     : 'false',
     18    'aria-labelledby' : 'top'
    1819});
    19 
    20 
     20}}}