W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2009

RE: Does Tidy support consolidating multiple consecutive tags?

From: Michael J. Lyons <mikelyons@spongysoft.com>
Date: Mon, 23 Feb 2009 10:46:46 -0800
Message-ID: <B2BB2A54F0982F4CB241F00E63E6030E0309D8@kaitlyn.SpongySoft.com>
To: "Eric Frost" <eric.frost@mp2kmag.com>, <html-tidy@w3.org>
Awesome, thanks!!

-----Original Message-----
From: Eric Frost [mailto:eric.frost@mp2kmag.com] 
Sent: Monday, February 23, 2009 7:42 AM
To: Michael J. Lyons; html-tidy@w3.org
Subject: Re: Does Tidy support consolidating multiple consecutive tags?

Hi Michael,

You can merge spans and divs and it will consolidate attribute:
You can also sort the combined attributes:
I cannot think of any side effects..

The option to merge spans is one of the more recent additions
to html tidy.
I don't know about any other tags that can be merged, such as
duplicate consecutive b or h1 tags... I don't think so. Where
this is most often an issue is with span's and div's.

hope this helps,

From: Michael J. Lyons
Sent: Sunday, February 22, 2009 5:44 PM
To: html-tidy@w3.org
Subject: Does Tidy support consolidating multiple consecutive tags?

If I have multiple tags, such as "span", with different (non-duplicate) 
attributes, such as:

<span style="my_style"><span font="some_font"><span 

Can "Tidy" consolidate these into one (as below)? Would there be any
effect of doing this?

<span style="my_style" font="some_font" color="some_color">text</span>

Also, what about multiple tags like "span" with the same attribute?

<span attr="my_attr"><span attr="my_attr">text</span></span>

Becomes this:

<span attr="my_attr">text</span>

Received on Monday, 23 February 2009 18:38:47 UTC

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