W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2015

Re: RAPID CSS 2015 - HTML5 + Cleanup

From: Geoff McLane <ubuntu@geoffair.info>
Date: Thu, 06 Aug 2015 13:27:21 +0200
Message-ID: <55C34499.30003@geoffair.info>
To: html-tidy@w3.org
Hi Frank,

Thanks for reporting. Yes, you are correct. The extraordinary action 
'clean' will combine empty div classes!

So in place of -

  <div class='headerDiv'>
     <div class='headerContent'>
         <div class='languages'>

you will get -

  <div class='headerDiv headerContent languages'>

Tidy! has **ALWAYS** done this! For the last 14+ years... It is a Tidy! 
`feature`... ;=))

I guess the 'clean' option was mainly to begin to strip out surplus 
presentational tags and attributes especially those generated by 
Microsoft Office products...

It is probably not needed on most documents... hence defaults to 'no'... 
I seldom use it...

Just remove the -c option and the DIV structure will be retained...

Alternatively, there is already an option `--merge-divs no` to at least 
prevent this... if you still need other clean actions...

Hope this clarifies and helps.

Received on Thursday, 6 August 2015 11:27:51 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 6 August 2015 11:27:53 UTC