[Webkit-unassigned] [Bug 170005] New: HTML parser: <dialog> does not close <p>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 23 06:19:40 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=170005

            Bug ID: 170005
           Summary: HTML parser: <dialog> does not close <p>
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zcorpan at gmail.com
                CC: cdumez at apple.com

Version: Release 26 (Safari 10.2, WebKit 12604.1.12)

Test: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4976

Result in Chrome canary:
log: <dialog><p></dialog>x
log: <p><dialog>
log: DONE

Expect:
log: DONE

The HTML parser does not close the p for </dialog> in the first test, and doesn't close the p for <dialog> in the second test.

HTML standard:
[[
A start tag whose tag name is one of: "address", "article", "aside", "blockquote", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure", "footer", "header", "hgroup", "main", "menu", "nav", "ol", "p", "section", "summary", "ul"
If the stack of open elements has a p element in button scope, then close a p element.

Insert an HTML element for the token.
]]

[[
An end tag whose tag name is one of: "address", "article", "aside", "blockquote", "button", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure", "footer", "header", "hgroup", "listing", "main", "menu", "nav", "ol", "pre", "section", "summary", "ul"
[...handling of end tag...]
]]

html5lib-tests PR:
https://github.com/html5lib/html5lib-tests/pull/91

Test passes in Firefox Nightly. Fails in Chrome canary (bug: https://bugs.chromium.org/p/chromium/issues/detail?id=704534 ).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170323/9d518bf4/attachment.html>


More information about the webkit-unassigned mailing list