Jump to content


This topic is now archived and is closed to further replies.


Opera & Nulls

Recommended Posts

why does every browser except opera treat <div class="classname"></div> as absolutly nothing (or dependant on the actual class attributes).

Where as Opera puts the keyword "null" on the page as place holder.

It's much cleaner and easier to code stuff like this:
<div class="dberror"><?=$error; ?></div>

instead of
<?=($error)?"<div class=\"dberror\">$error</div>";

The cleaner approach works in every browser except opera :( *sniffs*
How do you guys do it?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.