The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

! HTMLOptionsCollection instanceof Array

Forums » Dev.Opera » Archived Opera Web Standards Curriculum Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

27. October 2011, 22:49:43

! HTMLOptionsCollection instanceof Array

Why HTMLCollection.prototype != Array.prototype???

30. October 2011, 00:12:20

sorry, in topic is not correct expression.

this is right:
HTMLCollection.prototype.constructor.prototype != Array.prototype

31. October 2011, 20:46:07 (edited)

Originally posted by jamesmorison2011:

i think this is an efficient way to convert html collection to array


Other browsers (IE8+, Fx, Chrome) use Array as prototype for HTMLCollection.prototype.constructor.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11195

Forums » Dev.Opera » Archived Opera Web Standards Curriculum Discussions