This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We already ignore the immediate children of script, form, etc. elements, as well as spans that we've inserted ourselves. This change makes us skip the entire subtree of such an element. One important effect is that if another extension changes one of our spans using a similar algorithm to ours (inserting a new subtree) we previously could end up reprocessing that node in a future document_end event. Now, we prevent that.
- Loading branch information
Showing
1 changed file
with
56 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters