[Webkit-unassigned] [Bug 7936] New: Inconsistent toString behavior for document.styleSheets, cssRules, etc.
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Thu Mar 23 11:13:16 PST 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=7936
Summary: Inconsistent toString behavior for document.styleSheets,
cssRules, etc.
Product: WebKit
Version: 417.x
Platform: Macintosh
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: CSS
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: ytpete at gmail.com
Certain CSS-related scripting objects display inconsistent behavior when
attempting to convert them to strings.
See the attached testcase:
alert(document.styleSheets) --> works as expected
alert(""+document.styleSheets) --> "No default value" exception
alert(document.styleSheets.toString()) --> "Value undefined" exception (there
is no toString method).
Clearly, there is code to render the object as a string because the first case
works. It is just not getting invoked properly in the other cases.
Some related CSS objects have the same bug:
document.styleSheets[i] --> correct
document.styleSheets[i].cssRules --> buggy
document.styleSheets[i].cssRules[j] --> buggy
--
Configure bugmail: http://bugzilla.opendarwin.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