WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 8131
7936
Inconsistent toString behavior for document.styleSheets, cssRules, etc.
https://bugs.webkit.org/show_bug.cgi?id=7936
Summary
Inconsistent toString behavior for document.styleSheets, cssRules, etc.
Peter Flynn
Reported
2006-03-23 11:13:15 PST
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
Attachments
Testcase for document.styleSheets
(535 bytes, text/html)
2006-03-23 11:14 PST
,
Peter Flynn
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Peter Flynn
Comment 1
2006-03-23 11:14:00 PST
Created
attachment 7254
[details]
Testcase for document.styleSheets
Peter Flynn
Comment 2
2006-04-14 17:12:14 PDT
This bug also happens for document.scripts
Alexey Proskuryakov
Comment 3
2006-04-15 02:30:24 PDT
Although this bug has been filed earlier,
bug 8131
shows more progress towards being fixed, so I'm closing this one as a duplicate. *** This bug has been marked as a duplicate of
8131
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug