Skip to content
This repository has been 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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edanp
Copy link

@edanp edanp commented Apr 1, 2020

added checking if node is null in the while condition

@andreskrey
Copy link
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
Copy link
Author

edanp commented Apr 10, 2020

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.

None yet

2 participants