I ran into this because I wanted an export of a Google Doc without page breaks. PDF needs page breaks, so I thought SingleFile would be good. The SingleFIleZ extension ran fine without error but the resulting HTML file showed only a blank page with this error:
I opened the Google Doc HTML export and saw it was missing a doctype:
Adding <!DOCTYPE html> and rerunning SingleFileZ on the patched file fixed it. It'd been good is SingleFileZ could handle these broken HTML files though.
I'm in Firefox 99 so maybe this doesn't happen in Chrome.
I ran into this because I wanted an export of a Google Doc without page breaks. PDF needs page breaks, so I thought SingleFile would be good. The SingleFIleZ extension ran fine without error but the resulting HTML file showed only a blank page with this error:
The red underline is wrong - it's actually the
.remove()
which throws the error. https://developer.mozilla.org/en-US/docs/Web/API/Document/doctype#notes says it can be null.I opened the Google Doc HTML export and saw it was missing a doctype:
Adding
<!DOCTYPE html>
and rerunning SingleFileZ on the patched file fixed it. It'd been good is SingleFileZ could handle these broken HTML files though.I'm in Firefox 99 so maybe this doesn't happen in Chrome.