Skip to content

"This page contains the following errors:..." when opening a file:/// url ending in .html; page works fine over https with mime type text/html #750

@falsifian

Description

@falsifian

Steps to reproduce

Create a file ~/f.html with the following text (which may violate some standard):

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" style="font-family: Inter, Averta, Helvetica, Arial; font-weight: 400; color: #454745; font-size: 16px;">
</html>

Try to open it as a file://... url. Upload it to a web server (serving it as MIME type text/html) and try to open it via an https://... url.

Expected behaviour

vimb treats the file the same over file://... and https://....

Actual behaviour

vimb has no complaints when accessing it over https://...: a blank page is shown. (I actually had a file with some real content; the content is shown without trouble.) But via file:///... I see a red box with this message:

This page contains the following errors:

error on line 1 at column 2: StartTag: invalid element name
Below is a rendering of the page up to the first error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions