[Webkit-unassigned] [Bug 173528] New: Class matching fails after moving an element from a quirks-mode document to a standard-mode document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 18 16:19:08 PDT 2017


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

            Bug ID: 173528
           Summary: Class matching fails after moving an element from a
                    quirks-mode document to a standard-mode document
           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: tkent at chromium.org
                CC: cdumez at apple.com

crbug.com/733682

With the following page, "Second query result should not be null:" should not be null, but Safari TP 30 says "null".


<!-- quirks mode -->
<body>
<dialog>
<button class="nextButton"></button>
<button class="nextButton"></button>
</dialog>
<template><div></div></template>
<pre></pre>
<script>
function log(str) { document.querySelector('pre').textContent += str + '\n'; }
log('Main document\'s mode: ' + document.compatMode);
var dialog = document.querySelector('dialog');
var button = dialog.querySelector('.nextButton');
var tc = document.querySelector('template').content;
log('Template document\'s mode: ' + tc.ownerDocument.compatMode);
tc.ownerDocument.adoptNode(button);
log('Second query result should not be null: ' + dialog.querySelector('.nextButton'));
log('Content of context element: ' + dialog.innerHTML);
</script>
</body>


Firefox: not-null
Chrome 61 canary: not-null
Edge: not-null

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170618/70837b78/attachment-0001.html>


More information about the webkit-unassigned mailing list