Bug 39915

Summary: [chromium] Style tags get inserted into non-HTML documents
Product: WebKit Reporter: Aaron Boodman <aa>
Component: WebKit APIAssignee: Aaron Boodman <aa>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, fishd
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch none

Aaron Boodman
Reported 2010-05-28 16:32:19 PDT
[chromium] Style tags get inserted into non-HTML documents
Attachments
Patch (1.24 KB, patch)
2010-05-28 16:36 PDT, Aaron Boodman
no flags
Aaron Boodman
Comment 1 2010-05-28 16:36:12 PDT
Aaron Boodman
Comment 2 2010-05-28 16:41:42 PDT
This is an alternate fix to what I was trying to get done in bug 39887. Once this is in, I'll revert that one.
Eric Seidel (no email)
Comment 3 2010-05-28 16:42:57 PDT
Comment on attachment 57395 [details] Patch I dont' really understand what this does (and it looks like the indentation is off). SVG has a<style> tag too. What are you trying to accomplish?
Darin Fisher (:fishd, Google)
Comment 4 2010-05-29 13:43:20 PDT
Note: The WebKit API exposes WebDocument::documentElement() and WebElement::hasTagName() methods, so it would be possible to test this on the side of the embedder if it could make sense to insert style text into a document that doesn't have a html tag as its root.
Aaron Boodman
Comment 5 2010-05-29 13:52:09 PDT
I'm going to go ahead and move this to the Chromium side.
Note You need to log in before you can comment on or make changes to this bug.