<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - html files downloaded rather than displayed"
   href="https://bugs.webkit.org/show_bug.cgi?id=160347#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - html files downloaded rather than displayed"
   href="https://bugs.webkit.org/show_bug.cgi?id=160347">bug 160347</a>
              from <span class="vcard"><a class="email" href="mailto:orbisvicis&#64;gmail.com" title="orbisvicis&#64;gmail.com">orbisvicis&#64;gmail.com</a>
</span></b>
        <pre>shared-mime-info.x86_64 1.6-1.fc24

This bug report is only applicable to local files (file:///), I forgot to mention. Test files:

#1

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
  &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;

&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;
    &lt;head&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h1&gt;Hello Heading&lt;/h1&gt;
        &lt;p&gt;Hello paragraph.&lt;/p&gt;
    &lt;/body&gt;
&lt;/html&gt;

#2

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
  &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;

&lt;html&gt;
    &lt;body&gt;
        &lt;h1&gt;Hello Heading&lt;/h1&gt;
        &lt;p&gt;Hello paragraph.&lt;/p&gt;
    &lt;/body&gt;
&lt;/html&gt;</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>