-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certain list structures cause the editor to crash when using Document lists alongside GHS #15527
Comments
@mabryl could you check if how turning on the |
@Witoso just checked it and there seems to be no difference in behavior, unfortunately: adjacent-lists-freeze.mov |
Thanks for checking, we will take a look at this! One important thing to mention is that it's highly unadvisable to use div's like that, as it's not possible to escape them when writing (rel: #6462). |
Related #15565 ? |
This was a post-fixer loop. Two post-fixers were fixing each other changes. One was removing GHS-related list attributes (and it was doing it too greedy) and the other was adding them since they were expected. This problem was caused by:
It was trying to iterate the attribute change "shallowly" but for attribute change on an element the range starts before an element and ends just inside it and the walker with the |
📝 Provide detailed reproduction steps (if any)
<div>
elementsa
item in the second list item✔️ Expected result
The editor shouldn't crash.
❌ Actual result
The entire tab freezes, no error thrown in the console:
document-list-freeze.mov
❓ Possible solution
It looks like something weird is happening with the second
<div>
because removing it from the markup resolves the issue.📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: