Comments (5)
htmlquery
package will auto remove duplicated text since #20 .
from htmlquery.
htmlquery
package will auto remove duplicated text since #20 .
Except that it doesn't consistently.
Take the source string <sup>24</sup><sup>24</sup><sup>24</sup>
Perform a QueryAll
using //sup/text()
.
Expected output would be:
24
24
24
Actual output is the same - it works as intended.
Now perform QueryAll
using //sup/text()|/div/text()
. The only difference here is the extra option. The expected output should be the same.
Actual output for this one is:
24
So at the very least there is inconsistency between the behaviour of the two queries, and my expectation would be that it is the second case that is performing incorrectly.
from htmlquery.
This is a bug, I had fixed at antchfx/xpath@a015dcb
Thanks for your feedback.
from htmlquery.
Thank you. I can confirm that this has fixed the issue.
from htmlquery.
When are we likely to see a new release with this fix?
from htmlquery.
Related Issues (20)
- The example fails in ubuntu 20.04 HOT 1
- Access inner text from node with other elements around HOT 2
- [bug] htmlquery.QueryAll not returning all node attribute results HOT 2
- Randomly panics ! HOT 1
- `replace()` on a query doesn't seem to work HOT 3
- `Find` returns an element when passed an invalid xpath HOT 3
- Get a panic when parse html page HOT 6
- Xpath failing to find nodes HOT 2
- FindOne with expression containing groups only works the first time HOT 2
- go: github.com/antchfx/htmlquery: invalid github.com import path "github.com/antchfx" HOT 4
- concurrent writes to map panic HOT 2
- `LoadURL()` supports 'gzip ', 'deflate' decompression
- Duration of the request HOT 1
- Which package would be faster htmlquery or xmlquery? HOT 1
- panic: not yet support this function lower-case() HOT 2
- html data miss
- Can,t Get Scripts useing xpath expression
- i can,t parse scripts from document , using xpath query HOT 2
- add function to set the default http request cilent HOT 1
- Question: How I can remove specific child from parent so when I do InnerText I don't get the text of the child HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmlquery.