You are here: Re: shopping for an html editor « HTML « IT news, forums, messages
Re: shopping for an html editor

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация