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
That fails because Nokogiri is not configured with STRICT or NOENT options (see here)
I'm not sure what would be the most appropriate behaviour. Using STRICT would break other specs, like the one where you're comparing HTML:
context"(on fragments consisting of multiple nodes)"doit"should compare all nodes"dodoc1="<h1>Headline</h1><h1>Headline</h1>"doc2="<h1>Headline</h1><h2>Headline2</h2>"expect(doc1).not_tobe_equivalent_to(doc2)endend
So if you need equivalient-xml to handle invalid XML strings, you're left with NOENT. Unfortunately, I don't see any way to use parsing options with Nokogiri::XML#fragment (here), that's why I haven't opened a PR, sorry.
The text was updated successfully, but these errors were encountered:
equivalent-xml ignores unescaped XML entities. Try with this spec:
That fails because Nokogiri is not configured with
STRICT
orNOENT
options (see here)I'm not sure what would be the most appropriate behaviour. Using
STRICT
would break other specs, like the one where you're comparing HTML:So if you need equivalient-xml to handle invalid XML strings, you're left with
NOENT
. Unfortunately, I don't see any way to use parsing options with Nokogiri::XML#fragment (here), that's why I haven't opened a PR, sorry.The text was updated successfully, but these errors were encountered: