Bug 77933

Summary: XML parsing error on a valid (w3c validator) xhmtl 1.0 page
Product: [Applications] konqueror Reporter: Gregory Mounie <gregory.mounie>
Component: khtml parsingAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gregory Mounie 2004-03-18 18:20:53 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    Debian testing/unstable Packages
OS:          Linux

The web page of http://www.imag.fr passes the xhtml1.0 validator of w3c

But konqueror only display

XML parsing error

fatal parsing error: the document is not in the correct file format in line 120, column 6
  <tr>
     ^

Headers:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">

Does the code assuming <th> in table ?

The page code around the line is:

<table style="width:100%;text-align:center;">
  <tr>    <------------------------------------------ the offending line
    <td rowspan="2"></td>
    <td style="width:120px"><a href="http://www.cnrs.fr"><img src="images/Logos-tutelles/CNRS-75x55.png" class="TutelleLogo" alt="CNRS"/></a></td>
    <td style="width:120px"><a href="http://www.inpg.fr"><img src="images/Logos-tutelles/INPG-75x55.png" class="TutelleLogo" alt="INPG"/></a></td>
    <td style="width:120px"><a href="http://www.ujf-grenoble.fr"><img src="images/Logos-tutelles/UJF-75x55.png" class="TutelleLogo" alt="UJF"/></a></td>
    <td rowspan="2"></td>
 </tr>
 <tr><td colspan="3"><p style="color:#666666;">&copy; IMAG - Domaine Universitaire - BP 53<br/>38041 Grenoble cedex 9</p></td></tr>
</table>
Comment 1 Stefano 2004-03-19 16:33:50 UTC
confirmed here: kde3.2.1 on gentoo linux, while working fine on any mozilla based browser
Comment 2 Jose Hernandez 2004-04-10 05:37:49 UTC
Set Konq to UTF-8 for a quick fix. Look at Bug 42683.
Comment 3 Tommi Tervo 2004-10-20 10:59:59 UTC
Works fine with khtml from CVS-head.
Comment 4 Allan Sandfeld 2004-12-08 01:49:12 UTC
Also here