opal-browser
opal-browser copied to clipboard
Add ParentNode and fix children implementation
Look at https://developer.mozilla.org/en-US/docs/Web/API/ParentNode
ParentNode.children
returns only element nodes without text nodes unlike Node.childNodes
which includes all Nodes and so current implementation is wrong.
Note that I haven't really tested this yet but I think it should work, also there aren't tests for this.
Regarding the children method, I think this implementation should follow Nokogiri for an expected behaviour.