Jump to content


Photo

Opera & Nulls


  • Please log in to reply
No replies to this topic

#1 lead2gold

lead2gold
  • Members
  • PipPipPip
  • Advanced Member
  • 164 posts
  • LocationOttawa, On

Posted 13 July 2006 - 04:58 PM

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?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users