[Webkit-unassigned] [Bug 24421] New: CSS from STYLE tag is applied to page even when STYLE element is not in the document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 6 02:33:59 PST 2009


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

           Summary: CSS from STYLE tag is applied to page even when STYLE
                    element is not in the document
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://ua.zapatec.net/~vanger/webkit-css-innerhtml-
                    bug.html
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: b30r4 at 6zap.com


I'm doing pre-parsing of HTML strings before dispaying them to page to cut off
forbidden tags. To do this I'm creating element in the DOM but do not add it
into main page to not affect page layout, assigning innerHTML to this string
and after that processing new DOM tree to delete forbidden elements. After that
I'm compressing element content into HTML string and inserting it into page.
This works ok with all the browsers but in Webkit I got an error - if HTML
string contains <STYLE> tag - CSS rules from that element are applied to main
page even if temporary element is not in the main page DOM.
See attached example.


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



More information about the webkit-unassigned mailing list