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

Client is not loaded on page with malformed <head> tag #41

Open
robertknight opened this issue Dec 15, 2020 · 2 comments
Open

Client is not loaded on page with malformed <head> tag #41

robertknight opened this issue Dec 15, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@robertknight
Copy link
Member

The Hypothesis client does not load when http://sites.fas.harvard.edu/~chaucer/special/litsubs/romances/sg-prt1.htm is proxied through viahtml. It does however load when this page is proxied through legacy Via.

A reduced test case is available here: https://hypothesis-via.s3-us-west-1.amazonaws.com/test-pages/no-head.html. It has the following HTML:

D>
</HEAD>
<BODY>
TEST
</BODY>
</HTML>

Compare https://viahtml3.hypothes.is/proxy/https://hypothesis-via.s3-us-west-1.amazonaws.com/test-pages/no-head.html against https://via.hypothes.is/https://hypothesis-via.s3-us-west-1.amazonaws.com/test-pages/no-head.html.

Original report: https://hypothes-is.slack.com/archives/C2BLQDKHA/p1607984782401800

@robertknight
Copy link
Member Author

I've checked that the issue is not related to the case of the tags but to the leading D>. The client is not loaded with this HTML:

D>
</head>
<body>
TEST
</body>
</html>

But is loaded with this HTML:

</head>
<body>
TEST
</body>
</html>

@mattdricker
Copy link

@klemay klemay added the bug Something isn't working label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants