Bug 118646 - [testcase] in (valid) xhtml 1.0 strict document, incorrect text element is considered as a link
Summary: [testcase] in (valid) xhtml 1.0 strict document, incorrect text element is c...
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml parsing (show other bugs)
Version: 3.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 16:33 UTC by Markus Vuorio
Modified: 2008-06-15 06:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Vuorio 2005-12-19 16:33:23 UTC
Version:           3.5 (using KDE 3.5.0, Debian Package 4:3.5.0-1 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.14-2-k7

This XHTML-document's P-element in the end of document is considered as a link, though it shouldn't be. http://validator.w3.org accepts the markup. Case screenshot in http://www.wilan.org/kuvat/konqbug.png . Linked stylesheets are not needed to reproduce this situation.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<?xml version="1.0" encoding="iso-8859-1"?>
<html lang="fi" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Lummeniemi 3</title>
    <link media="screen" href="tyyli.css" type="text/css" rel="stylesheet"/>
    <link media="print" href="tulostus.css" type="text/css" rel="stylesheet"/>
    <meta content="text/html;charset=iso-8859-15" http-equiv="content-type"/>
    <meta content="text/css" http-equiv="Content-Style-Type"/>
  </head>
  <body>
    <div id="header"> </div>
    <div id="ala">
      <div id="vasen">
        <img src="layout/h.gif" alt=""/>
        <h3>Yleiset</h3>
        <div class="navcontainer">
          <ul class="navlist">
            <li>
              <a href="index.html"/>
            </li>
          </ul>
        </div>
        <h3>Kronikat</h3>
        <div class="navcontainer">
          <ul class="navlist">
            <li>
              <a href="ryhma4.html">Elsin ryhmä: Nollatoleranssit</a>
            </li>
            <li>
              <a href="ryhma5.html">Iitan ryhmä: MuumiNiiskut</a>
            </li>
            <li>
              <a href="ryhma3.html">Jaakkon ryhmä: Mukulat</a>
            </li>
            <li>
              <a href="ryhma2.html">Juhanin ryhmä: Eläin. </a>
            </li>
            <li>
              <a href="ryhma7.html">Juhon ryhmä: Tintti-liisat</a>
            </li>
            <li>
              <a href="ryhma6.html">Sarin ryhmä: Röllit</a>
            </li>
          </ul>
        </div>
        <h3>Päiväkirjat</h3>
        <div class="navcontainer">
          <ul class="navlist">
            <li id="active">
              <a href="19072005.html">Tiistai</a>
            </li>
            <li>
              <a href="20072005.html">Keskiviikko</a>
            </li>
            <li>
              <a href="21072005.html">Torstai</a>
            </li>
            <li>
              <a href="22072005.html">Perjantai</a>
            </li>
            <li>
              <a href="23072005.html">Lauantai</a>
            </li>
            <li>
              <a href="24072005.html">Sunnuntai</a>
            </li>
            <li>
              <a href="25072005.html">Maanantai</a>
            </li>
            <li>
              <a href="26072005.html">Tiistai</a>
            </li>
            <li>
              <a href="27072005.html">Keskiviikko</a>
            </li>
          </ul>
        </div>
        <h3>Kuvagalleria</h3>
        <div class="navcontainer">
          <ul class="navlist">
            <li>
              <a href="galleria1.html">Kanoottikuvia</a>
            </li>
            <li>
              <a href="galleria2.html">Iltaohjelmasta</a>
            </li>
          </ul>
        </div>
        <br/>
        <div class="navcontainer">
          <ul class="navlist">
            <li>
              <a href="rompusta.html">riparirompusta</a>
            </li>
          </ul>
        </div>
      </div>
      <div id="oikea">
        <img src="layout/v.gif" alt=""/>
        <h1>Tiistai</h1>
        <p>THIS part is erroneously considered as a link.</p>
        <p>Tekijät: </p>
      </div>
    </div>
  </body>
</html>
Comment 1 Maksim Orlovich 2005-12-19 16:42:00 UTC
What mimetype is this served as?
Comment 2 Thiago Macieira 2005-12-20 01:08:00 UTC
    <meta content="text/html;charset=iso-8859-15" http-equiv="content-type"/>
Comment 3 Maksim Orlovich 2005-12-20 01:13:23 UTC
Then it's not an xhtml issue at all, it's handling of an unclosed <a> in html
(the <a href="index.html"/> )
Comment 4 Markus Vuorio 2005-12-20 11:46:45 UTC
Ahaa... thanks for pointing that out. Is this bug at all then? Other browsers seem to act otherwise, but that tells nothing of course...
Comment 5 Maksim Orlovich 2005-12-21 01:33:01 UTC
It's a bug in that we don't handle unclosed <a> in html quite like other browsers.
Comment 6 Martin Fitzpatrick 2007-01-09 22:05:40 UTC
Confirmed this behaviour still exists Konqueror 3.5.5 / Kubuntu 6.10. Minimal test case available online at http://www.mutube.com/x/kde/bug118646.html
Comment 7 Martin Fitzpatrick 2008-04-05 22:00:26 UTC
Still present in 4.0.3, but interestingly Firefox 3 now exhibits the same behaviour. Still a bug (since our bug status was based on other browsers behaviour)?
Comment 8 FiNeX 2008-04-10 21:44:35 UTC
Cannot reproduce the but on the revision 794646. I've saved the example HTML to file and I've opened it with konqueror.
Comment 9 George Goldberg 2008-05-06 06:22:39 UTC
Using testcase from comment #6, I can't reproduce this bug in 3.5.9 or svn trunk r803492. Behaviour in both is identical to Firefox 2.
Comment 10 FiNeX 2008-05-06 10:22:55 UTC
I've just reproduced the "bug" from the testcase on comment #6 using KDE 3.5.9.
Comment 11 George Goldberg 2008-06-15 06:57:59 UTC
Behaviour seems identical to other browsers in svn trunk r820659. Closing.