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 9913 - document type does not allow element "input" here - false positive
Summary: document type does not allow element "input" here - false positive
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://www.forsaken-mu.com
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 12:43 UTC by ghelyar
Modified: 2010-06-11 13:24 UTC (History)
0 users

See Also:


Attachments

Description ghelyar 2010-06-11 12:43:46 UTC
In an ASP.NET site, the form is automatically generated and an input tag is used to store the viewstate.

It is valid XHTML and has passed validation in the past but recently the validator is claiming that it is invalid.



The suggestion/description says
missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag

It gives the error on the <input> line.


However, the following input tag is clearly inside a "div" tag.


...
<body> 
    <form id="aspnetForm" method="post" action="/Default.aspx"> 
<div> 
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wE...gK" /> 
</div>
...



This is likely affecting all asp.net websites on the web, at least.
Comment 1 ghelyar 2010-06-11 12:45:59 UTC
This is on XHTML 1.1 and 1.0 Strict.
Comment 2 ghelyar 2010-06-11 12:57:41 UTC
If I copy the source from Internet Explorer, Firefox or Chrome and validate by direct input, they all pass.
Comment 3 ghelyar 2010-06-11 13:16:19 UTC
This seems to be something to do with asp.net only serving the <div>s to certain User-Agents