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 25397 - your html validator reports the following as an error, and I clearly isn't:
Summary: your html validator reports the following as an error, and I clearly isn't:
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Windows NT
: P2 major
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: 2014-04-21 09:53 UTC by mgwalm
Modified: 2014-04-21 13:38 UTC (History)
0 users

See Also:


Attachments

Description mgwalm 2014-04-21 09:53:37 UTC
your html validator reports the following as an error, and I clearly isn't:

Error document type does not allow element X here 
✉ 


The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). 

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). 
• Line 6236, column 27: document type does not allow element "div" here       var $temp = $('<div/>').html(data);


its just a selector:"?