You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:
Nokogiri::HTML4::DocumentFragment::parse options::HTML4::DocumentFragment.parse#test_0003_takes a config block:
NoMethodError: undefined method `strict?' for nil:NilClass
/__w/nokogiri/nokogiri/test/html4/test_document_fragment.rb:376:in `test_0003_takes a config block'
This seems to be caused by a block_given? failing due to a method being very distant from where it's logically passed the block due C code in between.
BlockGivenNode here seems to be getting the frame of /Users/chrisseaton/Documents/nokogiri/lib/nokogiri/html4/document_fragment.rb:27, which looks right, but indeed it doesn't have a block. How should rb_obj_call_init be passing it, and how should xml_document_fragment.c#new be passing it?
CRuby has a macro PASS_PASSED_BLOCK_HANDLER() which it uses explicitly in a couple of places to pass the block. I'll add a spec and refactor our code to do the same sort of thing.
This seems to be caused by a
block_given?
failing due to a method being very distant from where it's logically passed the block due C code in between.BlockGivenNode
here seems to be getting the frame of/Users/chrisseaton/Documents/nokogiri/lib/nokogiri/html4/document_fragment.rb:27
, which looks right, but indeed it doesn't have a block. How shouldrb_obj_call_init
be passing it, and how shouldxml_document_fragment.c#new
be passing it?Reproduce with
@flavorjones
The text was updated successfully, but these errors were encountered: