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 8609 - The dialog element doesn't seem to be valid in any context
Summary: The dialog element doesn't seem to be valid in any context
Status: RESOLVED WONTFIX
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC All
: 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: 2010-01-04 00:42 UTC by Benjamin Truyman
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Benjamin Truyman 2010-01-04 00:42:03 UTC
I've been validating some HTML5 for a blog I've been developing and I'm finding that nothing I do will make the placement of a <dialog> element valid.

For example:

<!DOCTYPE html>
<html>
	<head>
		<title>Test</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	</head>
	<body>
		<section>
			<dialog>
				<dt>Foo</dt>
				<dd>Bar</dd>
			</dialog>
		</section>
	</body>
</html>

The above HTML should validate according to the latest HTML5 Working Draft.  Instead, when run through the validator I'm given the following error:

"Line 9, Column 11: Element dialog not allowed as child of element section in this context. (Suppressing further errors from this subtree.)"

According to the spec, the <dialog> element should be valid wherever "flow content" is expected, such as a <section>, correct?  I've even tried swapping out the <section> element for others like <p>, <div>, <span>, etc., and still no luck.
Comment 1 Ville Skyttä 2010-01-04 06:56:16 UTC
This appears to come directly from the HTML5 validator and I can reproduce with validator.nu, so I'm closing this issue here.  For an explanation why, see the updated bug reporting instructions (bottom of the page) for our next release:

http://qa-dev.w3.org/wmvs/HEAD/feedback.html#bugreport
Comment 2 Michael[tm] Smith 2010-06-14 06:53:33 UTC
The <dialog> element has since been removed from the HTML5 spec.