Bug Tracker

Modify

Ticket #7460 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

Validate breaks on id="id" or name="id"

Reported by: finkel@… Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.3
Keywords: Cc:
Blocking: Blocked by:

Description

If a form has ANY input element (even one that is not subject to validation) that has either its ID or NAME set to "id", then the error label is never reset on the fields that are subject to validation.

<p>
<label for="cemail">Email</label>
<input type="text" class="required email" id="cemail" name="email" value="" />
</p>

<!-- 
Because the following input element has its ID and/or NAME
set to "id", the error label for ALL elements, such as the one 
above, is not reset correctly when its contents transitions 
from an invalid to valid entry.  This is true even though the 
element is NOT subject to validation.
-->
<p>
<label for="mid">Message ID</label>
<input id="id" type="text" name="id" value="5" />
</p>


Change History

comment:1 Changed 3 years ago by rwaldron

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 3 years ago by rwaldron

Duplicate of #7212.

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.