Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31350

Source HTML displayed instead of rendered HTML if file extension is missing.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.4
    • WebKit
    • None
    • Archlinux x86_74, KDE 4.10.3, Qt 4.8.4, rekonq 2.3.0.

      When rekonq is asked to display files containing HTML, but without a .html file extension (e.g. parts of emails) it usually displays the raw HTML source, instead of the rendered HTML.

      Steps to Reproduce:

      1. Create a file called "email" with one line only:

      Here is <a href=http://www.google.com>the link to google</a> I told you about.

      2. Copy that file exactly to email.html:

      % cp email email.html

      3. Open rekonq on each file separately:

      a) % rekonq email
      b) % rekonq email.html

      I observe email.html being rendered, email is shown as HTML source.

      I would expect that both files are the same and hence should be rendered in the same way. libmagic treats those files the same:

      % file email email: HTML document, ASCII text
      % file email.html email.html: HTML document, ASCII text

      i.e. the system knows that they are both HTML documents.

      This is frustrating, since it stops rekonq from being able to be used for showing HTML attachments from text-based mail clients, since they are typically named things like /tmp/muttu1234.

      Also see: https://bugs.kde.org/show_bug.cgi?id=313819

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jturcott Jocelyn Turcotte
            petelewis Peter Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes