|
Posted by Gιrard Talbot on 04/11/07 19:13
Chaddy2222 wrote :
> On Apr 11, 5:02 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
>> Scripsit GΓ©rard Talbot:
>>
> <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
So, it's not an empty <div> then, right?
<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
KompoZer's markup cleaner has "remove empty blocks" and it should only
remove markup like:
<div> </div> or <p> </p> often used to vertically ventilate, space out
blocks
It shouldn't remove wrapping div or wrapping block-level elements.
--------------
HTML Tidy has another feature, somewhat similar.
merge-divs
http://tidy.sourceforge.net/docs/quickref.html#merge-divs
{
merge-divs: This option specifies if Tidy should merge nested <div> such
as "<div><div>...</div></div>". If set to "auto", the attributes of the
inner <div> are moved to the outer one. As well, nested <div> with ID
attributes are not merged. If set to "yes", the attributes of the inner
<div> are discarded with the exception of "class" and "style".
}
HTML Tidy could propagate a page wrapping div into the body element.
e.g. with a typical 2 column page layout:
<body>
<div id="PageWrapper">
<div id="PageHeader">
...
</div>
<div id="NavigationPane">
...
</div>
<div id="CentralContentPane">
...
</div>
<div id="PageFooter">
...
</div>
</div>
</body>
should be converted into
<body>
<div id="PageHeader">
...
</div>
<div id="NavigationPane">
...
</div>
<div id="CentralContentPane">
...
</div>
<div id="PageFooter">
...
</div>
</body>
with style declarations, presentation data of PageWrapper moved to body.
GΓ©rard
--
Using Web Standards in your Web Pages (Updated Dec. 2006)
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages
Navigation:
[Reply to this message]
|