W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2003

Re: Errors formatting ASP.NET tags

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 18 Apr 2003 19:50:41 +0200
To: Steve Trefethen <strefethen@borland.com>
Cc: html-tidy@w3.org
Message-ID: <3ebe3aae.150046685@smtp.bjoern.hoehrmann.de>

* Steve Trefethen wrote:
>I've pulled the latest sources (at least I believe it to be the latest) from
>CVS and built libtidy.dll as of 4-17-03 and I'm trying to use it to format
>HTML that contains ASP.NET control tags without much luck.  I've tried to
>use new-blocklevel-tags, new-empty-tags, new-inline-tags and new-pre-tags
>without finding the right combination (if it exists).  I'm wondering if this
>is an area that is simply not currently supported by HTML Tidy?

The right combination would probably be

  new-blocklevel-tags: asp:calendar \
                  todaydaystyle \
                  selectorstyle \
                  selecteddaystyle \
                  weekenddaystyle \
                  titlestyle \
                  othermonthdaystyle \
                  dayheaderstyle \

Using this and -i you would result (using latest CVS sources, note
<http://tidy.sf.net/bug/723772>) in:

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <meta content=
    "HTML Tidy for Windows (vers 1st April 2003), see www.w3.org"

  <body ms_positioning="GridLayout">
    <form id="Form1" method="post" runat="server">
      <asp:calendar id="Calendar1" style=
      "Z-INDEX: 102; LEFT: 46px; POSITION: absolute; TOP: 66px"
                    runat="server" backcolor="White" width="200px"
                    daynameformat="FirstLetter" forecolor="Black"
                    height="180px" font-size="8pt" font-names=
                    "Verdana" bordercolor="#999999" cellpadding="4">
        <todaydaystyle forecolor="Black" backcolor="#CCCCCC">
        <selectorstyle backcolor="#CCCCCC"></selectorstyle>
        <nextprevstyle verticalalign="Bottom"></nextprevstyle>
        <dayheaderstyle font-size="7pt" font-bold="True"
        <selecteddaystyle font-bold="True" forecolor="White"
        <titlestyle font-bold="True" bordercolor="Black"
        <weekenddaystyle backcolor="#FFFFCC"></weekenddaystyle>
        <othermonthdaystyle forecolor="#808080"></othermonthdaystyle>

This is friendly speaking not entirely accurate but it should at least

>Often times filling in various combinations of new-* members yields an empty

Tidy does not output a new document if it encounters fatal errors and
unknown elements constitute fatal errors.
Received on Friday, 18 April 2003 13:50:57 UTC

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