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

BUG: outerHTML drop <script>'s start tag #275

Open
Zhang-Junzhi opened this issue Apr 11, 2024 · 0 comments
Open

BUG: outerHTML drop <script>'s start tag #275

Zhang-Junzhi opened this issue Apr 11, 2024 · 0 comments

Comments

@Zhang-Junzhi
Copy link

<!DOCTYPE html
><html lang="en"
><meta charset="UTF-8"
><title aria-live="polite">test</title
><link href="/style/app" rel="stylesheet"
><link rel="icon" href="/image/logo"><script src="/script/app" type="module"></script

></html>

Parse the above and then retrieve the document text from outerHTML.
The <script> will be dropped, making the end </script> tag immediately follow <link>:

<link rel="icon" href="/image/logo"></script
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

1 participant