- From: ben van 't ende [netcreators] <ben@netcreators.nl>
- Date: Sun, 01 Aug 2004 21:25:01 +0200
- To: html-tidy@w3.org
- Cc: sisterscape <sisterscape@yahoo.com>
>>This seems like a really trivial problem, but it stops me from using tidy. >>Empty div's are just stripped and I can't seem to figure out what the tidy >>config is to prevent that from happening. > > > There is no such option. Having empty div elements seems quiet untidy to > me, why would Tidy retain them? Just make them non-empty if you really > need to, like > > <div><!----></div> Hi Bjoern, I described my problem wrong. In one instance I use three div's to achieve the onion skin layers like: http://www.alistapart.com/articles/onionskin/. Lots of discussion going on there about this extra markup. There seems to no easy way to achieve this effect without the div's. I had some help from someone and after further investifation it turned out the config option "clean: 1" was the one that combined my div's into one. ("This option specifies if Tidy should strip out surplus presentational tags and attributes replacing them by style rules and structural markup as appropriate. It works well on the HTML saved by Microsoft Office products.") After switching that off everything was ok! tHNx ben -- netcreators :: creation and innovation www.netcreators.nl - www.typo3.nl
Received on Sunday, 1 August 2004 15:24:22 UTC