Re: RAPID CSS 2015 - HTML5 + Cleanup

Geoff McLane <[email protected]> Thu, 06 Aug 2015 13:27:21 +0200
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
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.

Regards,
Geoff.