W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2002

RE: Tidy support

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Fri, 8 Nov 2002 16:25:01 -0500
To: <html-tidy@w3.org>
Cc: "'Charles Reitzel'" <creitzel@rcn.com>
Message-ID: <002301c2876d$4ccddca0$6601a8c0@blackie>

David Wier wrote:

> Here's my one line in the config.txt file 
> new-empty-tags: aspnet101:side,...
> The tags look pretty much like this:
> <aspx:header runat="server"/>
> Can anyone see what I'm doing wrong here?

Charlie, after checking out what David posted, I can verify that it's
not working (or maybe I'm missing some config option).  I tried running

    <aspx:header runat="server"/>

through Tidy with this config file:

    output-xhtml: yes
    doctype: strict
    wrap-asp: yes
    tidy-mark: no
    new-empty-tags: aspx:header

And this is what I got back:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

    <html xmlns="http://www.w3.org/1999/xhtml">


What happened to the <aspx:header/> in the original???

The error file gave this:

    line 6 column 5 - Warning: <aspx:header> is not approved by W3C
    line 5 column 5 - Warning: <aspx:header> isn't allowed in <body>
    Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN"
    Info: Document content looks like HTML proprietary
    2 warnings, 0 errors were found!

It seems to be ignoring the 'new-empty-tags' option and removing the
whole element, then giving a warning about how <aspx:header> isn't
approved by the W3C.  *Of course* it's not approved by the W3C -- isn't
that what the new-* options are for?

Received on Friday, 8 November 2002 16:25:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:52 UTC