internetarchive / wayback-machine-webextension

A web browser extension for Chrome, Firefox, Edge, and Safari 14.
GNU Affero General Public License v3.0
668 stars 207 forks source link

XHTML incorrectly rewritten #993

Closed LiraOnGithub closed 1 year ago

LiraOnGithub commented 1 year ago

Describe the bug When an XHTML-page gets saved, &lt; gets rewritten to < yielding an invalid document

To Reproduce Steps to reproduce the behavior:

  1. Go to http://web.archive.org/save
  2. Enter the URL of am XHTML-document that has a &lt;
  3. Press "SAVE PAGE"
  4. Go to the URL via the wayback machine

Expected behavior The document in the same form as the original.

Screenshots image

Environment (please complete the following information):

Additional context The XHTML-document is served with application/xhtml+xml; charset=UTF-8 (which is correct) but that also means that with the XML parsing error the navigation that is normally on the top of pages is not present.

LiraOnGithub commented 1 year ago

I just noticed this is wayback-machine-webextension and not wayback-machine. My apologies, I will close this now