-
-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nokogiri::XML::XPath::SyntaxError: Invalid expression: .//child::text() | self::child::text() #1233
Comments
Looking, this is definitely unintentional behavior. |
An immediate workaround is to avoid doc.xpath(".//text()") |
OK, this bug is deep, and is a result of trying to fix xpath querying on DocumentFragments, so I'm not going to be able to fix it this morning. Please, as a workaround, use |
Thank you for looking into it! I'll wait for your fix.
👌 Will use the workaround for now. Thanks for your time! 😄 |
- As identified in #170, nokogiri 1.6.x is buggy - Team nokogiri is working on the fix sparklemotion/nokogiri#1233 - Until the bug is fixed, define a range of working nokogiri gems
nokogiri 1.6.x is buggy => sparklemotion/nokogiri#1233 Until the bug is fixed, define a range of working nokogiri gems.
Thanks @JuanitoFatas for posting. (I was just looking at some of your html-inline code) Looks like most people are pegging to a specific nokogiri version :( |
Thanks for your kind words Keenan.
I try to use the workaround @flavorjones provided workaround to soften dependency for html-pipeline. But I have a question. Are |
Closing this, since it's a symptom of the deeper issue described at #572 |
Hello,
I am doing a search on document fragment:
When I upgrade nokogiri to 1.6.6.1+, one of the Error messages:
I have checked that works on 1.6.5 but failed on 1.6.6.1 & 1.6.6.2.
I found relevant code is:
The
path
caused syntax error is:".//child::text() | self::child::text()"
.In 1.6.5
path
is".//child::text()"
.Should 1.6.6.x maintain this backward compatibility?
Ref. gjtorikian/html-pipeline#170
Thanks!!!
The text was updated successfully, but these errors were encountered: