Opened 6 days ago

Last modified 6 days ago

#14817 new bug

Webpositive cannot render html file

Reported by: jackburton Owned by: pulkomandy
Priority: normal Milestone: Unscheduled
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


Download this zip file, unzip it and open main.htm or index.html with Webpositive:

It won't work and show an error: "This page contains the following errors: error on line 26 at column 8: opening and ending tag mismatch: link line 0 and head"

Note that the same page works correctly if opened from here:

Otter browser opens the file correctly. hrev52724, x64

Change History (2)

comment:1 Changed 6 days ago by jackburton

Summary: Webpositive cannot renderWebpositive cannot render html file

comment:2 Changed 6 days ago by pulkomandy

This happens when the MIME sniffing misidentifies an HTML file as XHTML. WebKit relies on the mime attribute for local files to decide which parser (html or xhtml) to use. I don't know what other browsers do for local files.

We can improve our sniffing rules or change our strategy.

Online this doesn't matter, because we instead trust the MIME type given by the web server, which is usually set properly.

Note: See TracTickets for help on using tickets.