- From: Ivan Gum <ivangum@yahoo.com>
- Date: Wed, 2 Jan 2002 17:23:13 -0500 (EST)
- To: html-tidy@w3.org
- Message-ID: <20020102222233.43031.qmail@web13302.mail.yahoo.com>
Tidy doesn't seem to properly tidy up code where I'm using a user-defined tag. I have a new-inline-tag called NEWTAG. This is Not defined as an empty tag. INPUT: <font color="#FFFFFFFF"><newtag>click here</newtag> to do some stuff.</font> OUTPUT: <font color="#FFFFFFFF"><newtag"><font color="#FFFFFFFF">click here</font> to do some stuff.</newtag></font> line 24 column 62 - Warning: inserting implicit <font> line 24 column 72 - Warning: replacing unexpected </newtag> by </font> line 24 column 102 - Warning: missing </newtag> before </font> It forces a <font> tag within the newtag which I don't like but is not really a problem. However by doing that it then expects a </font> tag. Instead it sees the </newtag> and instead of Adding a </font> tag it Replaces my </newtag> with </font>. Since it inserted the <font> tag, why doesn't it just insert the closing </font> tag instead of replacing the </newtag>? This seems to be a bug. Later on it inserts a </newtag> replacing my </newtag> that it wiped out, but the problem is it puts it in the wrong location. The end result is that in the input, the text "to do some stuff" is Outside of the <newtag>, but after processing, that text is now Inside the <newtag>. Is there any way to workaround this behavior? This new-inline-tag is required to be a non-empty tag. Thanks. My jtidy.cfg looks like this... new-inline-tags: newtag new-empty-tags: quiet: true doctype: omit uppercase-tags: yes tidy-mark: no quote-ampersand: yes char-encoding: utf8 --------------------------------- Do You Yahoo!? Send your FREE holiday greetings online at Yahoo! Greetings.
Received on Monday, 7 January 2002 21:18:19 UTC