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

Open
Kal-Aster opened this issue Nov 11, 2024 · 0 comments
Open

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

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

Comments

@Kal-Aster
Copy link

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
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