[Webkit-unassigned] [Bug 30709] Web Inspector: Pretty Print all HTML Collection Types like we do for NodeList
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 23 00:46:38 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30709
--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> 2009-10-23 00:46:38 PDT ---
It seems we can potentially future-proof against new cases:
> var options = document.createElement('select').options;
> options.toString()
[object HTMLOptionsCollection]
> options instanceof HTMLCollection
true
This could be used rather then individually checking class types. But do you
think there will be a case where we wouldn't want to do a basic pretty-print an
HTMLCollection derivative? For instance indicating the "extra stuff".
HTMLPropertyCollection has a "names" attribute
HTMLOptionsCollection has add/remove functions
And DOMTokenList for the elem.classList has some neat functionality:
https://developer.mozilla.org/en/DOM/DOMTokenList
My vote is that we should do a basic pretty-printing of not just HTMLCollection
but also its derivates. If people really want to know whats up they can do a
console.dir(...) on the object, but otherwise they should know what they are
dealing with and would welcome the pretty printing.
--
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