Re: merging nested span
"Arnaud Desitter" <[email protected]>
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
----- Original Message ----- From: "Charlie" <[email protected]> To: "Bjoern Hoehrmann" <[email protected]> Cc: "Arnaud Desitter" <[email protected]>; <[email protected]> Sent: Tuesday, March 22, 2005 3:13 AM Subject: Re: [Tidy-dev] merging nested span >I would just drop the warning for nested spans. The warning might make >sense if all attributes match exactly. But the test doesn't seem worth the >effort. The warning has been dropped for nested span. So http://tidy.sf.net/bug/1079820 is now solved and closed. My question is different. I opened a feature request: http://tidy.sf.net/feature/1168193 Would be merging nested span useful ? The code would be in clean.c and it is a one-liner to implement #2 below. The choices are: #1 do nothing because it is not worth it. #2 merge nested spans with the same algorithm as merge-divs in "auto" mode. No config option to control it. #3 merge nested spans with the same algorithm as merge-divs with all modes (we add a new option "merge-spans" similar to "merge-divs") Any opinion ? > At 05:04 PM 3/21/2005 +0100, Bjoern Hoehrmann wrote: >>* Arnaud Desitter wrote: >> >Should we merge SPANs as we do for DIVs (with a merge-spans option)? >> >>Do we have feature requests to this effect or would we rather do this >>for completeness? I am not sure there is lots of unintentionally nested >>spans on the web, merging divs was rather to accomodate word cleanup >>which generated unintentionally nested divs, IIRC. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click