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>
What mimetype is this served as?
<meta content="text/html;charset=iso-8859-15" http-equiv="content-type"/>
Then it's not an xhtml issue at all, it's handling of an unclosed <a> in html (the <a href="index.html"/> )
Ahaa... thanks for pointing that out. Is this bug at all then? Other browsers seem to act otherwise, but that tells nothing of course...
It's a bug in that we don't handle unclosed <a> in html quite like other browsers.
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
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)?
Cannot reproduce the but on the revision 794646. I've saved the example HTML to file and I've opened it with konqueror.
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.
I've just reproduced the "bug" from the testcase on comment #6 using KDE 3.5.9.
Behaviour seems identical to other browsers in svn trunk r820659. Closing.