Mark

Results 127 comments of Mark

I was able to reproduce the error in https://replit.com/@remarkablemark/html-dom-parser-181#index.ts I believe a potential fix would be to add ES Module support for this package. See https://unpkg.com/[email protected]?module: ``` Package [email protected] does...

Added ESM support for `html-dom-parser` in https://github.com/remarkablemark/html-dom-parser/pull/203#issuecomment-1030494326

Upgraded `html-dom-parser` in https://github.com/remarkablemark/html-react-parser/pull/444#issuecomment-1030529360

Got it, then I'm not exactly sure what can be done to resolve this.

Closing issue due to lack of activity. Feel free to reopen if you have additional questions.

Closing issue due to lack of activity. Feel free to reopen if you have additional questions.

Closing issue due to lack of activity. Feel free to reopen if you have additional questions.

Closing issue due to lack of activity. Feel free to reopen if you have additional questions.

@JiriLojda Thanks for creating the reproducible example. I can confirm that your [CodeSandbox](https://codesandbox.io/p/github/JiriLojda/html-react-parser-issue-repro/csb-36k02q/draft/trusting-blackburn?file=%2Fsrc%2FApp.tsx&selection=%5B%7B%22endColumn%22%3A18%2C%22endLineNumber%22%3A10%2C%22startColumn%22%3A18%2C%22startLineNumber%22%3A10%7D%5D&workspace=%257B%2522activeFileId%2522%253A%2522cla72ik9k0006l1cxfw384ew6%2522%252C%2522openFiles%2522%253A%255B%2522%252FREADME.md%2522%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522sidekickItems%2522%253A%255B%257B%2522type%2522%253A%2522PREVIEW%2522%252C%2522taskId%2522%253A%2522start%2522%252C%2522port%2522%253A3000%252C%2522key%2522%253A%2522cla72j4w300bl356lznuog3uv%2522%252C%2522isMinimized%2522%253Afalse%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522start%2522%252C%2522key%2522%253A%2522cla72j2eo0090356li2ut6gnj%2522%252C%2522isMinimized%2522%253Afalse%257D%255D%257D) isn't working correctly, but when I forked and created my own [CodeSandbox](https://codesandbox.io/s/html-react-parser-633-t7q605?file=/src/App.tsx), it seems to be working...

Thanks for sharing your findings @jt3k. In your case, I think performing a type assertion makes sense since `Element` are 2 distinct objects.