[Webkit-unassigned] [Bug 103681] New: non HTMLElement documentElement ignores display: none

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 29 15:50:28 PST 2012


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

           Summary: non HTMLElement documentElement ignores display: none
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: HasReduction
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: esprehn at chromium.org


If you replace the documentElement with a non-html element and then set it to display: none we ignore it.

ex.

<iframe id="doc"></iframe>

<script>
    var doc = document.getElementById('doc').contentDocument;
    var root = doc.implementation.createDocument().createElement('not-a-real-element');
    doc.replaceChild(root, doc.documentElement);
    root.appendChild(document.createElement('style')).textContent = 'not-a-real-element { display: none }';
    root.appendChild(document.createElement('p')).textContent = 'Should not be visible';
</script>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list