This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser: Simplify the
element_in_specific_scope
calls
The old implementation using 2 tagsets was being rather wasteful with stack space, allocating 2 whole sets when one of them always contains a single tag element. Knowing that the `expected` elements must always be in the HTML namespace, we can simplify these APIs by passing an array of elements and stop allocating so much space on the stack.
- Loading branch information
Showing
1 changed file
with
31 additions
and
40 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