Bug Tracker

Modify

Ticket #11830 (closed bug: invalid)

Opened 12 months ago

Last modified 12 months ago

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

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

Description

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

Change History

comment:1 Changed 12 months ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to misc

English and jsFiddle testcase please

comment:2 Changed 12 months ago by anonymous

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

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.