Haddock: how to disable the JavaScript menus?

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Sep 28 11:05:59 EDT 2004


On the theme of improving Haddock, do you think it could be fixed to
generate valid HTML?  Here are some examples of the errors I get when
running Haddock output through "validate" (the Web Design Group's
HTML and XML validator).

    *** Errors validating Text.XML.HaXml.Combinators.html: ***
    Line 135, character 2:  end tag for element "TD" which is not open; try
            removing the end tag or check for improper nesting of elements
    Line 136, character 7:  end tag for element "TR" which is not open; try
            removing the end tag or check for improper nesting of elements
    *** Errors validating Text.XML.HaXml.Lex.html: ***
    Line 75, character 2:  end tag for element "TD" which is not open; try
            removing the end tag or check for improper nesting of elements
    Line 76, character 7:  end tag for element "TR" which is not open; try
            removing the end tag or check for improper nesting of elements

    *** Errors validating doc-index-tB.html: ***
    Line 40, character 4:  missing a required sub-element of "TABLE"
    *** Errors validating doc-index-tJ.html: ***
    Line 40, character 4:  missing a required sub-element of "TABLE"
    *** Errors validating doc-index-tK.html: ***
    Line 40, character 4:  missing a required sub-element of "TABLE"

The "missing sub-element of TABLE" indicates an empty table, but
the closing of tags that are not open is slightly more worrying.
This is with haddock-0.6 and validate-1.0.3.

Regards,
    Malcolm


More information about the Glasgow-haskell-users mailing list