[Bug 8609] New: The dialog element doesn't seem to be valid in any context

http://www.w3.org/Bugs/Public/show_bug.cgi?id=8609

           Summary: The dialog element doesn't seem to be valid in any
                    context
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5
        AssignedTo: dave.null@w3.org
        ReportedBy: bentruyman@gmail.com
         QAContact: www-validator-cvs@w3.org


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.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 4 January 2010 00:42:08 UTC