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
RuntimeError: error parsing fragment (1)
from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:532:in `in_context'
from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:532:in `parse'
from nokogiri-1.5.5/lib/nokogiri/html/document_fragment.rb:22:in `initialize'
from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:508:in `new'
from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:508:in `fragment'
from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:925:in `coerce'
from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:406:in `replace'
As I can tell, that error raises from in_context function in xml_node.c.
Meanwhile, replacing the text nodes which are not in the top level, works as expected:
The code:
Gives us error:
As I can tell, that error raises from
in_context
function inxml_node.c
.Meanwhile, replacing the text nodes which are not in the top level, works as expected:
Just reporting, don't feel competent to provide patch to that issue, sorry.
nokogiri -v:
The text was updated successfully, but these errors were encountered: