- From: Charles Reitzel <creitzel@rcn.com>
- Date: Fri, 08 Nov 2002 17:34:43 -0500
- To: "Jelks Cabaniss" <jelks@jelks.nu>
- Cc: <html-tidy@w3.org>
Thanks, yet again, for boiling that down. It's busted like that all the way back to 04Aug2000. Never do see the declared tag in the output. Doesn't work without the colon ":" in the element name. Doesn't work w/out "strict" or XHTML, either. It's done been broke good. Can anyone locate or create an example of declared tag that does work (w/ any version of Tidy)? I think there is one or two in the test bed. Interestingly, even with the ":" in the tag name (thought this might hang up the option parser), tidy -config decltag.ini decltag.html -show-config accurately shows the declared tag. Can someone besides me break out the debugger on this one? I _was_ going to write some API docs for TidyLib. <g> I was also going fix character set handling for TidyATL. Have a good weekend all. take it easy, Charlie At 04:25 PM 11/8/2002 -0500, Jelks Cabaniss wrote: >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 this: > > <html> > <head> > <title>Test</title> > </head> > <body> > <aspx:header runat="server"/> > </body> > </html> > >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" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>Test</title> > </head> > > <body> > </body> > </html> > >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> >elements > 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? > >/Jelks
Received on Friday, 8 November 2002 17:33:26 UTC