Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#11830 closed bug (invalid)

td的name和id属性的值一样会出错

Reported by: 422819105@… Owned by:
Priority: low Milestone: None
Component: misc Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

如果TD中的name和id的值一样会出错例如 <td id="name1" name="name2"> <td id="name2" name="name2"> 如果$("[name='name2']")来取只能取到一个

Change History (2)

comment:1 Changed 7 years ago by sindresorhus

Component: unfiledmisc
Priority: undecidedlow
Resolution: invalid
Status: newclosed

English and jsFiddle testcase please

comment:2 Changed 7 years ago by anonymous

<td id="name1" name="name2"> <td id="name2" name="name2">

$("[name='name2']") only get one column

Note: See TracTickets for help on using tickets.