Gerben
Gerben
Like issue #29, but for subdocuments inside frames. As remarked [here](https://github.com/WebMemex/freeze-dry/blob/3f1cc62892202aa1f5f226ba2b385d23a0d9be89/src/capture-dom.js#L68-L72): ``` get blob() { return new Blob([this.string], { type: 'text/html' }) }, get string() { // TODO Add if...
Scripts can modify stylesheets using the CSSOM functions like [`CSSStylesheet.insertRule()`](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule), [used](https://github.com/emotion-js/emotion/issues/1248) by e.g. [emotion.js](https://emotion.sh/). The contents of a `` element appear to not be updated to reflect the new rules,...
Some inspiration in [these lines](https://github.com/ianb/pagearchive/blob/01f832583380309ec167c77f9af61e6f0af8f6aa/extension/make-static-html.js#L566-L581) of pagearchive.
For example, we currently happily inline an html 404 page as if it was the desired resource, producing e.g. ``. We could consider alternatives, such as replacing such URLs with...
Freeze-dry messes up if a stylesheet or framed document is encoded in utf16, utf32, or possibly other encodings. We [use](https://github.com/WebMemex/freeze-dry/blob/138a687ceba0aa8b079e3b30d982d74b1d703095/src/crawl-subresources.js#L137) [`FileReader.readAsText`](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText) to decode these resources, which by default assumes utf8...
As explained in src/Readme: > Although we try to clone each Document living inside a frame (recursively), it may be impossible to access these inner documents because of the browser's...
Currently, we inline *all* resolutions listed in an ``'s `srcset`, all `` and `` sources, all stylesheets, etcetera. This makes snapshots huge. The upside is that the snapshot will be...
*This was previously [issue #134 in webmemex-extension](https://github.com/WebMemex/webmemex-extension/issues/134) ("Images not in snapshots from Medium.com").* When the page was viewed with javascript disabled, we should keep `` tags, and perhaps convert them...
Needs investigation, fixing, and tests. Some problems already apparent: - an SVG's `` element's `.href` property appears to not be a string, while we assume it to be. - an...
We currently split by comma, but that is a too simplistic approach. Especially as we use data URLs ourselves, which always contain a comma, we shoot ourselves in the foot...