[Webkit-unassigned] [Bug 11641] New: Wanted: option to render HTML sent with wrong mime type as HTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 17 21:19:10 PST 2006


           Summary: Wanted: option to render HTML sent with wrong mime type
                    as HTML
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
               URL: http://relnotes.sb.ubi.com/index.shtml
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: rich at indieimage.com

There are a few web sites that send HTML documents with the wrong mime type,
most often text/plain. It usually happens if the document is dynamically
generated or has a less common extension like shtml, and the author never
tested it with a standards-based browser. This causes Safari (and any
standards-based browser) to display the raw HTML code as plain text.

It'd be great if Safari offered an option, via a contextual menu, to render
text/plain files as if they were text/html. The way it could work is this:

If a text/plain document appears to be HTML (such as, it starts with <html,
<?xml, <!DOCTYPE, <head, or <body), display it as plain text and add an item to
the document's contextual menu called "Render as HTML" which, if selected,
would interpret it as if it were sent as text/html.

The reason for a contextual menu, and not an item on the Safari menubar, is
that I think it should be available to any application that embeds Webkit --
like where I encountered this problem today.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list