This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9933 - Improve error location info
Summary: Improve error location info
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 1.0
Hardware: PC Linux
: P2 normal
Target Milestone: 1.1
Assignee: Ville Skyttä
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 10076
  Show dependency treegraph
 
Reported: 2010-06-15 16:38 UTC by Ville Skyttä
Modified: 2010-07-12 16:23 UTC (History)
0 users

See Also:


Attachments

Description Ville Skyttä 2010-06-15 16:38:22 UTC
The info given by validator about error locations should be improved as the errors may not occur in the doc to be validated, they may be elsewhere.  For example validate the following XHTML MP 1.2 doc with xmllint (libxml):

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" 
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html>
<head>
<title>
Plain Text
</title>
</head>
<body>
<p>
This is
<br/>
A simple sample of XHTML MP
</p>
<div style="text-align:right">
Hello, world
</div>
</body>
</html>



$ xmllint --noout --postvalid t.xhtml 
http://www.openmobilealliance.org/tech/DTD/xhtmlmp12-form-1.mod:18: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0x92 0x53 0x20 0x52
    OR ITS AFFILIATES REGARDING ANY OF THE IPR&#65533;S REPRESENTED ON THE OMA
                                              ^
http://www.openmobilealliance.org/tech/DTD/xhtmlmp12-form-1.mod:69: parser warning : PEReference: %form.element; not found
<![%form.element;[
                 ^
[...]

$ HEAD http://www.openmobilealliance.org/tech/DTD/xhtmlmp12-form-1.mod
200 OK
Date: Tue, 15 Jun 2010 16:37:46 GMT
Accept-Ranges: bytes
ETag: "4cbc61cb759c71:1f3d"
Server: Microsoft-IIS/6.0
Content-Length: 9885
Content-Type: application/octet-stream
Last-Modified: Mon, 26 Feb 2007 15:01:52 GMT
Client-Date: Tue, 15 Jun 2010 16:37:47 GMT
Client-Peer: 195.238.226.77:80
Client-Response-Num: 1
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Comment 1 Ville Skyttä 2010-07-04 08:25:39 UTC
This particular test case does not work at the moment as the OMA DTDs are 404 right now, but here's another:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+RDFa 1.1//EN"
            "http://www.w3.org/TR/2010/WD-rdfa-in-html-20100624/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" lang="en">
  <head>
    <title>Example Document</title>
  </head>
  <body>
    <p>Moved to <a href="http://example.org/">example.org</a>.</p>
  </body>
</html>
Comment 2 Ville Skyttä 2010-07-04 08:34:21 UTC
Done now in hg for HTML output.  Bug 10076 tracks this for other output types.
Comment 3 Ville Skyttä 2010-07-12 16:23:54 UTC
Done in 1.1.