Closed balmoral closed 9 years ago
NodeSet#each
comes from NodeSet#method_missing
, the actual bug was that NodeSet#respond_to_missing?
wasn't implemented.
It's now implemented on master, so it should work, reopen the issue if it's not the case.
Works now. Thanks for fast fix.
You were lucky, I just got out of bed because I couldn't sleep :panda_face:
You've built some pretty amazing tools here. Do hope you get some well-deserved rest. :smile:
Browser::DOM::NodeSet calls #each in many places but #each is not implemented.
Also, in
Browser::DOM::Node#<<(node)
the argument is checked to see whether it responds to #each, which if a NodeSet it should but doesn't.This test code was failing for me at
c << headers
:The following patch to NodeSet fixed the problem: