Closed jaredcwhite closed 1 year ago
It seems that a document fragment will return element children as expected via element_children, and then of course you can call .first, but calling first_element_child will return nil.
element_children
.first
first_element_child
Thanks @jaredcwhite! Fixed by c33b9e13ab09695fa088613ce6583dfe698152a8. If it's not urgent, I will release a new version with more future fixes.
@zyc9012 Certainly not urgent. Thanks!
Working well now!
It seems that a document fragment will return element children as expected via
element_children
, and then of course you can call.first
, but callingfirst_element_child
will return nil.