node-html-parser icon indicating copy to clipboard operation
node-html-parser copied to clipboard

A very fast HTML parser, generating a simplified DOM, with basic element query support.

Results 34 node-html-parser issues
Sort by recently updated
recently updated
newest added

I parsed many different pages and tried to get all links from pages. I collect all acquired URLs into an array, but with time I got an error 'heap out...

needs reproduction

The README says: > but most usual errors are covered (eg. HTML4 style no closing ``, `` etc). These are not errors, nor are they HTML 4 specific. ------ The...

documentation

Hi, thanks for supporting this library. I've stumbled upon an issue with structured text, where blank lines from html are ommitted in the `structuredText`. Is there a way around that?...

question

Since version 5.2.2, no more changelog / release note are generated and it's always the same note attached to each release: ![image](https://user-images.githubusercontent.com/62333/158176682-6b054b77-7545-4c39-8f54-0916cc0ff6a6.png) Even the date is locked at `2021-10-28`. Is...

Here is a failing test case: ```typescript it("reproduces error", () => { const html = ` b c ` const root = parse(html) root.querySelector('div').childNodes.unshift(parse('a')); expect(root.querySelector("p:nth-of-type(2)").rawText).toEqual("b"); /* Expected: "b" Received: "c"...

documentation

I'm trying to understand the object that HTMLParser.parse() returns and I can't seem to find the schema in your README file. Am I just not seeing it? I currently have...

documentation

`node-html-parser` currently uses the following regex pattern to parse tag name: https://github.com/taoqf/node-html-parser/blob/v6.1.14/src/nodes/html.ts#L924-L925 This is incorrect, since tag name can not only be for a custom element, but for any element....

bug

Is it possible to specify case insensitivity for `:contains()` query [Example](https://codesandbox.io/p/sandbox/node-html-parser-demo-forked-tsd6w8?file=%2Fsrc%2Findex.js%3A6%2C4-6%2C20&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clu8fbr3l00063j6gm715syqd%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clu8fbr3l00023j6gjlifixgh%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clu8fbr3l00033j6g8uwy86j8%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clu8fbr3l00053j6gu5kuaukh%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B40%252C60%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clu8fbr3l00023j6gjlifixgh%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clu8fbr3l00013j6gug97i2qy%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Findex.js%2522%252C%2522state%2522%253A%2522IDLE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A6%252C%2522startColumn%2522%253A4%252C%2522endLineNumber%2522%253A6%252C%2522endColumn%2522%253A20%257D%255D%257D%255D%252C%2522id%2522%253A%2522clu8fbr3l00023j6gjlifixgh%2522%252C%2522activeTabId%2522%253A%2522clu8fbr3l00013j6gug97i2qy%2522%257D%252C%2522clu8fbr3l00053j6gu5kuaukh%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clu8fbr3l00043j6ghdzlyz7b%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clu8fbr3l00053j6gu5kuaukh%2522%252C%2522activeTabId%2522%253A%2522clu8fbr3l00043j6ghdzlyz7b%2522%257D%252C%2522clu8fbr3l00033j6g8uwy86j8%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clu8fbr3l00033j6g8uwy86j8%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D) This example selects text but i would also like to select Text as well is this supported since i...

When trying to parse hte html from [this page](https://pkg.go.dev/github.com/astaxie/beego#section-readme), calls to `valid` returns false and the HTML isn't parsed. Further inspection shows that the call to `base_parse` returns a stack...

Hello, first of all, thanks for this library, it is awesome! I was using it to parse some rental ads websites and I think I might have found a slight...

bug