lead2gold Posted July 13, 2006 Share Posted July 13, 2006 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:[code]<div class="dberror"><?=$error; ?></div>[/code]instead of[code]<?=($error)?"<div class=\"dberror\">$error</div>";[/code]The cleaner approach works in every browser except opera :( *sniffs*How do you guys do it? Quote Link to comment https://forums.phpfreaks.com/topic/14504-opera-nulls/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.