|
Posted by Chaddy2222 on 04/11/07 08:43
On Apr 11, 5:02 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> Scripsit Gérard Talbot:
>
> > - KompoZer 0.77 markup cleaner will fix nested lists, remove trainling
> > <br> that WYSIWYG HTML editors often leave, remove align attributes in
> > empty table cells, remove empty blocks (like <p></p>). HTML Tidy will
> > do all this, except maybe fix nested lists
>
> Thanks for the heads-up.
>
> Such tools should _not_ be used without great discretion.
>
> Apart from fixing nested lists, which is a vague expression and could mean
> just about anything, all of these operations change the document and cause
> largely unpredictable effects on its visual appearance.
>
> For example, authors and editors often insert consecutive <br> tags to
> produce some vertical spacing. That's a wrong approach, but so is the
> operation of blindly removing them. The author wanted to create some
> spacing, so the author should decide what to do. Maybe the spacing _could_
> be removed. Maybe some simple CSS code should be added while removing the
> tags.
>
> Even "cleaning" <td align="right"></td> to <td></td> is wrong if you don't
> know what will happen, and a simple program surely cannot know that. Maybe
> the attribute is there for no good reason, but it's possible that it's there
> intentionally, e.g. because some client-side script will change the
> element's content to nonempty and the author wanted that content to be
> right-aligned.
>
<rest of post snip>
Yes, the markup cleaner in KompoZer can cause some unwanted thing to
happen. As an example if you have an empty div which just contains a
wrapper / container for the entire page <div id="wrapper"</div> just
as an example. The mark-up cleaner in NVU / KompoZer will remove that
div and hence mess up your layout. Thankfully you can press control Z
to undo the changes, or click the edit menu and press Undo and the
page is back to normal, but a pain none the less.
--
Regards Chad. http://freewebdesign.cjb.cc
Navigation:
[Reply to this message]
|