CleanX è una piccola utility che consente di ottimizzare il markup xHTML rimuovendo elementi superflui che spesso editor visuali o esportazioni da programmi non pensati per generare contenuti Web (like Microsoft Word) tendono ad introdurre nel markup.
CleanX is a simple little utility simple that allow you to optimize the xHTML markup removing superflous elements that usually visual editors and exports from software not thinked to generate web contents (like Microsoft Word) tends to add in the markup.
Il funzionamento di CleanX è estremamente semplice:
The way CleanX works is really, really simple:
La rimozione di un tag che ha un medesimo tag nidificato causa la rottura dell'html. Segue un esempio.
Removing a tag that has one same nested tag causes the html break. Follow an example.
<ul>
<li>
<ul>
<li id="xyz">
Lorem Ipsum dolor sit amet
</li>
</ul>
</li>
</ul>
Se viene richiesta la cancellazione dei nodi li senza attributi il risultato (errato) è quello che segue:
If the utility is configured as delete li nodes that has not attributes the (broken) result will be the following
<ul>
<ul>
<li id="xyz">
Lorem Ipsum dolor sit amet
</ul>
</li>
</ul>
Rovinando, ovviamente l'XHTML.