Keven Ages wrote:
I just noticed while creating a new template in Lenya that for some odd
reason div tags that have no content in them are ended (I’d imagine by
the XSLT processor).
For example
<div id=”mainLogo”></div>
Is changed to:
<div id=”mainLogo” />
</div>
If I put content inside the div it doesn’t end it. This is a major
problem if you are using a lot of background images or container divs.
by definition, <element></element> and <element/> are equivalent, so it
is definitely correct behaviour. the bug is in browsers, for example
mozilla gets all f%$§ed up when it encounters empty tags like <a
name="doh"/>.
for these browser bugs, there is the workaround that michael suggested.
if you want to have a layout-neutral filler, you can use the zero-width
space from unicode, which iirc is ‫. i don't know how older
browsers deal with this one, though.
hth,
jörn
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]