Skip to content
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

Fix/filter out doctype tags from legacy head tags #2715

Merged

Conversation

agalin920
Copy link
Contributor

@agalin920 agalin920 commented May 22, 2024

doctype tag is typically ID: 1 so this filter was removing it properly. However there is an edge case that can include more doctype tags so a better solution is to filter them out by type

@agalin920 agalin920 requested a review from shrunyan May 22, 2024 21:15
@agalin920 agalin920 linked an issue May 22, 2024 that may be closed by this pull request
@agalin920 agalin920 requested a review from finnar-bin May 22, 2024 21:18
@shrunyan shrunyan enabled auto-merge (squash) May 23, 2024 19:57
@shrunyan shrunyan merged commit 4a88c81 into dev May 23, 2024
1 check passed
@shrunyan shrunyan deleted the 2685-typeerror-cannot-read-properties-of-undefined-reading-map branch May 23, 2024 21:45
shrunyan pushed a commit that referenced this pull request May 31, 2024
doctype tag is typically ID: 1 so this filter was removing it properly.
However there is an edge case that can include more doctype tags so a
better solution is to filter them out by type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read properties of undefined (reading 'map')
3 participants