[Webkit-unassigned] [Bug 31224] New: When using V8 engine to get style sheet from document.styleSheets by using name, it should return StyleSheet object instead of HTMLStyleElement
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Nov 7 08:01:06 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=31224
Summary: When using V8 engine to get style sheet from
document.styleSheets by using name, it should return
StyleSheet object instead of HTMLStyleElement
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://soren.qzone.qq.com/cgi-bin/soren/cgi_userinfo_s
earch?bSimple=0&ptlang=2052
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: johnnyding.webkit at gmail.com
CC: dglazkov at chromium.org
In page
http://soren.qzone.qq.com/cgi-bin/soren/cgi_userinfo_search?bSimple=0&ptlang=2052,
it uses document.styleSheets["CssId"].rules to get style css rule list.
In safari, the page run well, but in Google Chrome, accessing
document.styleSheets["CssId"].rules got "undefined".
After investigation, Safari returns a [CSSStyleSheet] object when accessing
document.styleSheets["CssId"], so the "rules" can be gotten. Chrome returns a
[HTMLStyleElement] object when accessing document.styleSheets["CssId"], so the
"rules" can not be gotten.
I believe it's v8 binding's fault. See JS binding (JSStyleSheetListCustom.cpp,
line 60), it returns stylesheet instead of returning style element.
--
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