[Webkit-unassigned] [Bug 8131] Some properties and methods of window and document objects cannot be converted to a string
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Sun Apr 2 14:12:41 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=8131
------- Comment #4 from ap at nypop.com 2006-04-02 14:12 PDT -------
> I've never seen such "window['CSSRule']" code
Oh, this is actually just a reduction of what fails in the test case:
TotalString += PropertyIterator + 1 + ". " +
arrWindowProperties[PropertyIterator] + " = " +
window[arrWindowProperties[PropertyIterator]] + "<br>";
arrWindowProperties[0] happens to be CSSRule in Safari. Several other window
properties (e.g. window.XMLHttpRequest) have the same problem. To partially
work around this WebKit bug, you can use a try/catch block:
try {
TotalString += PropertyIterator + 1 + ". " +
arrWindowProperties[PropertyIterator] + " = " +
window[arrWindowProperties[PropertyIterator]] + "<br>";
} catch (ex) {
TotalString += PropertyIterator + 1 + ". " +
arrWindowProperties[PropertyIterator] + " - " + ex + "<br>";
}
> <...Argh...sigh> unfortunately, I can only test my website with a Mac in an
> Internet Cafe.
No problem, checking with nightly builds is not a requirement for filing WebKit
bugs, it's just an extra favor :)
--
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