[Webkit-unassigned] [Bug 39887] [chromium] Add isXHTMLDocument() to Chromium's WebKit::WebDocument

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 28 15:57:22 PDT 2010


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





--- Comment #10 from Eric Seidel <eric at webkit.org>  2010-05-28 15:57:20 PST ---
Well, the real fix is HTML5. :)  But I'm surprised you don't just check document.body and if that fails, check document.documentElement.firstChild.

It's lame that our XHTML documents don't have a .body (even though no spec until HTML5 said they should), but the .documentElement is a pretty common workaround.

Again, all of this will go away when we move to HTML5's document structure (I don't know when that will be).  We should just design whatever API so that it is future compatible.

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