Accessibility and <caption>

Hello!

I'm new to tidy so I don't know if the following behavier is a bug:


That's the input:

<!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="de" lang="de">
    <head>
        <title>System Administrator</title>
        <link rel="stylesheet" type="text/css" href="css/standard.css"
/>
        <meta http-equiv="Content-Style-Type" content="text/css" />
    </head>
    <body>
        <table summary="A very long description.">
            <caption>Objekte</caption>
            <tr>
                <th>Header1</th>
                <th>Header2</th>
            </tr>
            <tr>
                <td>Item1</td>
                <td>Item1</td>
            </tr>
        </table>
    </body>
</html>


Command (Windows XP):

tidy -access 3 input.html


Output:

....
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN"
Info: Document content looks like XHTML 1.0 Strict
No warnings or errors were found.


Accessibility Checks: Version 0.1

line 6 column 9 - Access: [6.1.1.1]: style sheets require testing
(link). 
line 10 column 9 - Access: [5.5.2.1]: <table> missing <caption>.
line 10 column 9 - Access: [5.4.1.1]: invalid markup used in layout
<table>.
....


Problem:

The table has a caption, but tidy doesn't recognize it. After I made
the following changes to the source, tidy recognizes the caption:

Ln 1771 original:
word = getTextNodeClear( doc, TNode);

Ln 1771 my version:
word = getTextNodeClear( doc, TNode->content);



Am I using tidy wrong or is this a bug?

Gerhard Engleder

Received on Tuesday, 24 August 2004 14:12:19 UTC