Bug Tracker

Opened 12 years ago

Closed 12 years ago

#3869 closed bug (wontfix)

Just see the examples

Reported by: MarkeLi Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocked by: Blocking:

Description

My codes don't work well under 1.3.

for eaxmple: $("#mytable tbody[name=details]").html("<tr name=data_item><td>xxxx</td></tr>") ;

and this command returns empty: $("#mytable tbody[name=details] tr[name=data_item]")

Change History (1)

comment:1 Changed 12 years ago by john

Milestone: 1.31.3.1
Resolution: wontfix
Status: newclosed
Version: 1.2.61.3

'name' is not a valid attribute for tbody or tr elements (it's only for things like a, input, or form elements). We now use getElementsByName in jQuery (provided by the browser) so it's not really a surprise that it doesn't return anything. I'd recommend using 'id' or 'class' instead, in this case.

Note: See TracTickets for help on using tickets.