This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13627 - got validation as duplicate specification of attribute "name"
Summary: got validation as duplicate specification of attribute "name"
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 19:41 UTC by Alex
Modified: 2011-08-25 20:39 UTC (History)
1 user (show)

See Also:


Attachments

Description Alex 2011-08-03 19:41:47 UTC
complete validation looks like:
==================================================================
Error Line 59, Column 109: duplicate specification of attribute "name"

irstName" type="text" id="tbxFirstName" name="tbxFirstName" type="text" /></td>

&#9993;

You have specified an attribute more than once. Example: Using the "height" attribute twice on the same "img" tag.
Error Line 59, Column 129: duplicate specification of attribute "type"

irstName" type="text" id="tbxFirstName" name="tbxFirstName" type="text" /></td>

&#9993;

You have specified an attribute more than once. Example: Using the "height" attribute twice on the same "img" tag.



========================================================

That is how your validator renders that section of the page (taken from the source on your validator):

============================================================
58   <td width="105px"><label for="tbxFirstName">FIRST NAME</label></td>
59   <td width="193px"><input name="tbxFirstName" type="text" id="tbxFirstName" name="tbxFirstName" type="text" /></td>
60   <td width="195px"></td></tr>

===========================================================


and that is what I have as a code on our source and view source from any browser:

source: 
<td width="105px"><label for="tbxFirstName">FIRST NAME</label></td>
<td width="193px"><asp:TextBox ID="tbxFirstName"  name="tbxFirstName" type="text" runat="server" Width="190px"></asp:TextBox></td>
<td width="195px"><asp:Label runat="server" ID="LblErrors" Visible="false" Font-Size="11px" Font-Bold="True" ForeColor="Red"></asp:Label></td></tr>


rendering by any known to me browser(source of rendered page):
<td width="105px"><label for="tbxFirstName">FIRST NAME</label></td>
<td width="193px"><input type="text" id="tbxFirstName" name="tbxFirstName" style="width:190px;" /></td>
<td width="195px"></td></tr>


Can you please explain to me where extra type="text" and name="tbxFirstName" comes from in your validator?
Comment 1 Ville Skyttä 2011-08-23 20:50:43 UTC
I suppose they're generated by asp.net when it serves the documents to the validator.

There's some information which might be related at http://msdn.microsoft.com/en-us/library/exc57y7e.aspx (see "Configuring Browser Capabilities for Markup Validation").
Comment 2 Alex 2011-08-24 12:41:58 UTC
There is nothing in ASP.NET to render page like that.
I viewed source from the browsers(IE, FF, Chrome) no such thing there at all.
It is for sure your parser adding those things.
By the way on some cases it does not do it.
For example when I open your validator via Chrome.
Comment 3 Etienne Miret 2011-08-24 18:42:29 UTC
Could you give us a URI for us to test?

(In reply to comment #2)
> I viewed source from the browsers(IE, FF, Chrome) no such thing there at all.
ASP.NET is known to send different content to the validator than to browsers.
Comment 4 Alex 2011-08-25 12:38:49 UTC
Forget it.
Site about to be turned down, thanks to your false validator.
Client was very disappointed about your validation and decides not to use web at all, to much complications for his taste.

Nice going guys.