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

Missing End-Tag in Nested Tag

From: Roman Baeriswyl <r.baeriswyl@gmail.com>
Date: Thu, 4 Apr 2013 10:44:12 +0200
Message-ID: <CA+KmifHxia9TE2tGj1FcrQtTXYCoTGj4hRiP+An6Wtz+QMnzQw@mail.gmail.com>
To: html-tidy@w3.org
Hi everybody

I have an issue with tidy, I guess the easiest way is to show an example:

My input is something like this:
<p><strong>Text</strong>MoreText<strong>test</p>
Other Text

As you can see, the last <strong> is missing the end-tag after the text
"test".
Tidy detects this and adds the </strong>-tag before </p>, but it then also
encapsulates the following element (which is "Other Text" in this example)
with strong tags.

So the output of tidy is:
<p><strong>Text</strong>MoreText<strong>test</strong></p>
<strong>Other Text</strong>

Is there any way to tell tidy to not implicitly add those strong tags to
the next element?

I really appreciate your help

Cheers
Roman
Received on Thursday, 4 April 2013 09:17:07 UTC

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