The V8 binding layer does not handle access of properties with integer names on HTMLDocuments as illustrated by the following example. We need to add an indexed property getter to HTMLDocuments. <html> <head> <script> function runTest() { alert(document['42']); alert(document[42]); } </script> </head> <body onload="runTest()"> <img name="42" src="foo.gif"> </body> </html>
Corresponding Chromium bug: crbug.com/31662
Created attachment 47520 [details] Add indexed property getter to HTMLDocument objects
Nate, you want to give it a look-over?
(In reply to comment #3) > Nate, you want to give it a look-over? LGTM
Comment on attachment 47520 [details] Add indexed property getter to HTMLDocument objects I wonder if we should just generate fallback index getters for all interfaces that have named property getters?
Comment on attachment 47520 [details] Add indexed property getter to HTMLDocument objects Clearing flags on attachment: 47520 Committed r53946: <http://trac.webkit.org/changeset/53946>
All reviewed patches have been landed. Closing bug.