- From: Terry Luedtke <LuedtkT@mail.nlm.nih.gov>
- Date: Wed, 13 Aug 2003 18:21:57 -0400
- To: <html-tidy@w3.org>
Hello, I'm using jTidy and running into problems nesting a newly defined inline tag in other HTML tags. I've seen similar posts, like http://lists.w3.org/Archives/Public/html-tidy/2002JanMar/0006.html , but no responses. My scenario is Config: new-inline-tags: new Original HTML: <html> <head> <title>test</title> </head> <body> <p> This is <em>an <strong>example</strong> here</em> </p> <p> This is <em>an <new>example</new> here</em> </p> <p> This is <a name="1">an <new>example</new> here</a> </p> </body> </html> Result: -> java -classpath Tidy.jar org.w3c.tidy.Tidy -config ./tidy.config inline.html Tidy (vers 4th August 2000) Parsing "inline.html" line 11 column 21 - Warning: inserting implicit <em> line 11 column 28 - Warning: replacing unexpected </new> by </em> line 11 column 39 - Warning: missing </new> before </em> inline.html: Document content looks like HTML proprietary 3 warnings/errors were found! <html> <head> <meta name="generator" content="HTML Tidy, see www.w3.org"> <title>test</title> </head> <body> <p>This is <em>an <strong>example</strong> here</em></p> <p>This is <em>an <new><em>example</em> here</new></em></p> <p>This is <a name="1">an <new>example</new> here</a></p> </body> </html> Note the warnings, and how there are new instances of the emphasis tag and how the closing new tag has moved after the word "here". It does work nested within an anchor tag though. Does anyone know a fix for this? Or what's different between custom inline tags and predefined tags? == Terry Luedtke National Library of Medicine
Received on Wednesday, 13 August 2003 18:22:32 UTC