Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

fixes #93 stop endless loop when node parent is null#94

Open
edanp wants to merge 1 commit into
andreskrey:masterfrom
edanp:master
Open

fixes #93 stop endless loop when node parent is null#94
edanp wants to merge 1 commit into
andreskrey:masterfrom
edanp:master

Conversation

@edanp

@edanp edanp commented Apr 1, 2020

Copy link
Copy Markdown

added checking if node is null in the while condition

@andreskrey

Copy link
Copy Markdown
Owner

I'm always wary of merging this type of fixes. Adding safe checks around the code is just a patch, where the real problem is hiding somewhere else. The engine should never reach the HTML tag while scanning parents.

I'll keep this pull open as a reminder and explore the real issue over the weekend.

@edanp

edanp commented Apr 10, 2020

Copy link
Copy Markdown
Author

I completely agree with you about this being a patch more than a fix for the real bug, but not merging it means you leave the library with a bug that cause endless loop.
Don't you think it's a priority to release a fix for this as a minor update and keep the bigger unknown bug as a todo for when you or anyone else have time?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants