Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9729 closed bug (invalid)

selector bug in google chrome & firefox

Reported by: xboyli@… Owned by:
Priority: low Milestone: 1.next
Component: traversing Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Description

HTML code:

<table>

<form>

<tr>

<td>

<input type="text"/>

</td>

</tr>

</form>

</table>

JS:

$('form input').val('some_value'); doesn't work.

$('table input').val('some_value'); work well.

this occurs while using google chrome & firefox.

Have I make a mistake or it's a bug?

Change History (1)

comment:1 Changed 8 years ago by dmethvin

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

The markup is invalid HTML. The form tag can't be nested inside a table that way. Wrap the table in the form instead.

Note: See TracTickets for help on using tickets.