-
Notifications
You must be signed in to change notification settings - Fork 124
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
MV3: Noscript tags with img breaking DOMParser in translator sandbox #477
Comments
adomasven
added a commit
that referenced
this issue
Jun 5, 2024
dstillman
added a commit
that referenced
this issue
Jun 5, 2024
…e. See #477" I thought we could just strip `<noscript>` and save a couple cycles, but I didn't realize this is operating on the live page, so better to just remove what's invalid and leave the rest (for all the people running the Zotero Connector with JavaScript disabled, which may or may not even be possible...). This reverts commit f1be738.
I'm still not getting EM on this page. The main translator is fixed, so it's less of an issue here, but this is likely preventing EM from working elsewhere.
|
I cannot reproduce this in a new profile with the current release build. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discovered in: zotero/translators#3311 (comment)
Problem page: https://journals.ametsoc.org/view/journals/phoc/53/1/JPO-D-22-0001.1.xml
EM translator is not detected, because no meta tags are found. I've discovered, that
This is because the 21st tag is
Apparently, img in noscript before body is invalid, and will cause the head element to be parsed as immediately terminated and body element to begin. So it seems like this page is intentionally breaking crawlers and such from accessing the meta tags in the head element, or something like that.
Anyway, as a proposed solution, I think we should strip all
<noscript>
tags from<head>
in MV3 before parsing.The text was updated successfully, but these errors were encountered: