dom-parser icon indicating copy to clipboard operation
dom-parser copied to clipboard

Fast dom parser based on regexps

Results 22 dom-parser issues
Sort by recently updated
recently updated
newest added
trafficstars

```javascript const domParser = require("dom-parser"); const parser = new domParser(); const html = ` Example Domain This domain is established to be used for illustrative examples in documents. You may...

For instance, this doesn't work: ```js const dom = HTMLParser('test') console.log(dom.getElementsByTagName('tip-link')) ``` It gives an empty list.

The following URL causes a node.js app to hang when matching using dom-parser. DOM source from: https://www.ecosia.org/ I created a simple vanilla javascript match script and tested the web page...

Hi, getElementsByTagName('a') return also "article" tag version: "0.1.5" ``` var DomParser = require("dom-parser") var parser = new DomParser(); var html = ` Link ` let doc = parser.parseFromString(html); let aTags...

It would be quite useful, and it doesn't seem to be super hard to implement (as little as I know). Thanks anyway for this fast little parser!

There is an error `TypeError: Cannot read properties of null (reading 'isSelfCloseTag')` while parsing from the following html string: ```js const htmlString = ` Webpack App `; ``` It directly...

TypeError: Cannot read properties of null (reading 'isSelfCloseTag') Fix and test

DOMParser is undefined in service worker or web worker. So please offer an umd build version, we can use it in worker environment by calling importScript.