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

undefined text when no text inside style or script tag. #16

Closed
Kal-Aster opened this issue Nov 11, 2024 · 2 comments
Closed

undefined text when no text inside style or script tag. #16

Kal-Aster opened this issue Nov 11, 2024 · 2 comments
Assignees

Comments

@Kal-Aster
Copy link
Contributor

Whenever a script or a style tag has only whitespace in it, the text property is not defined because the inner text is empty.

<script></script>
<!-- or -->
<style>    </style>

It would be useful to have access to the text property anyway at least to know where the opening tag ends and the closing tag starts.

@GianlucaGuarini GianlucaGuarini self-assigned this Nov 12, 2024
@GianlucaGuarini
Copy link
Member

This might be a breaking change since the compiler needs to ignore these tags. Would you mind opening a PR for it? I will be glad to have a look at it

@GianlucaGuarini
Copy link
Member

Thank you this issue was fixed with your patch in v9.0.0

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

No branches or pull requests

2 participants