xhtml pages break due to injected banner
Problem
https://web.archive.org/web/20150103001137/http://quotes.burntelectrons.org/browse?start=30 shows an error like:
XML Parsing Error: not well-formed
Location: https://web.archive.org/web/20150103001137/http://quotes.burntelectrons.org/browse?start=30
Line Number 148, Column 15:
<img align=right src="http://archiveteam.org/images/e/e6/Archiveteam.jpg" width=200> Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
---------------------^
Note the missing quotes in the align attribute and width attribute (also missing slash) that would make that valid xhtml.
It seems the archive should either not inject the banner on xhtml pages, or should inject valid xhtml.
I'd be happy to fix this if pointed to the relevant code, but I couldn't find it from a quick grep :)
Reproducing the bug
- Go to https://web.archive.org/web/20150103001137/http://quotes.burntelectrons.org/browse?start=30
- Stare at an error message.
- Expected behavior: An archived website.
- Actual behavior: An error.
Context
- Browser (Chrome, Safari, Firefox, etc): All
- OS (Windows, Mac, etc): All
- Logged in (Y/N): N
- Environment (prod, dev, local): prod
Breakdown
Requirements Checklist
- [ ]
Related files
*
Stakeholders
*
Instructions for Contributors
- Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
hey @emilio i can go through the issues as you mentioned and update you as soon i finish
Hello, we are a group of university students, and as part of our project, we are contributing to open-source repositories. We would really like to work on this issue, and since our project deadline is approaching, we are eager to get started as soon as possible. Could we please be assigned to this issue? We’ll make sure to follow all contributing guidelines and complete the work on time. Thank you for considering us!
I believe this issue is for team Wayback and not Open Library, cc: @ibnesayeed