Opened 18 months ago

Closed 17 months ago

Last modified 3 months ago

#14817 closed bug (invalid)

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:
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 (4)

comment:1 by jackburton, 18 months ago

Summary: Webpositive cannot renderWebpositive cannot render html file

comment:2 by pulkomandy, 18 months ago

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.

comment:3 by pulkomandy, 17 months ago

Resolution: invalid
Status: newclosed

I checked the files. You declare an XHTML strict doctype but your page do not validate as strict XHTML (non-closed tags, etc). If you want this to work, either make sure your pages pass XML validation, or use a non-xhtml doctype.

comment:4 by nielx, 3 months ago

Remove milestone for tickets with status = closed and resolution != fixed

Note: See TracTickets for help on using tickets.