[Webkit-unassigned] [Bug 10687] object embedded in HTML: default background should be transparent.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 21 22:51:57 PDT 2010


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





--- Comment #32 from Jeff Schiller <jeffschiller at google.com>  2010-09-21 22:51:56 PST ---
I liked your suggestion.  The first question to answer is:  If a document is served with MIME type text/xml, but it has a <svg> document root - is it a SVG Document?  

If so, then it really seems that DOMImplementation::createDocument() should be modified so that, if it's an XML document but it parses out with a <svg> root, we should create a SVGDocument (and destroy the Document?).  Any tips on the best way to do this without parsing the document twice?

The other option is to change isSVGDocument() to be similar to how isXHTMLDocument() is done, where a member bool can be set in the case of a Document parsing out with a <svg> root.  The thing I'm worried about is returning true for isSVGDocument() and not actually _being_ a SVGDocument.

The final option is to just add a isDocumentRootSVG() function to Document() and return true when it's a <svg>.  Is this what you're really suggesting?  Just seems odd to have both functions returning different values...

-- 
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