News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Scott Johnson's Blog:
Your Simple PHP Code Snippet for Monday
May 09, 2006 @ 06:03:23

Trying to find the HTML errors in a complex layout on a page can get very frustrating (especially when it repeats elements generated by backend scripts). Scott Johnson had one such instance, so he wrote a little script to help with it.

I wasn't planning on blogging much today (or, honestly, this week) since we're making good progress on Ookles but our designer just had to deal with the situation where one of our developers clobbered our page footer w/ a comment gone astray and she wasted quite a bit of time analyzing the problem. Which, naturally, turned out to be nothing more than an unbalanced set of div tags.

And since that's more often than not the problem these days with CSS bugs - at least for us - I whipped up a drop dead dumb div tag counter which seems to work but I suspect isn't perfect since its about as naive as you can get.

He has the source of the script included in the post as well as two examples of using it with msn.com and news.com. Other suggestions of tools to help with these problems are listed in the comments - the View Rendered Source Firefox extension, and the HTML Validator for Firefox.

0 comments voice your opinion now!
snipped match div tags validator firefox extension snipped match div tags validator firefox extension


blog comments powered by Disqus

Similar Posts

Hasin Hayder's Blog: Installing Imagick extension for PHP in Ubuntu 7.10

PHP Security Blog: The Suhosin Patch, File Uploads, and Stealth Mode

PHPClasses.org: Lately in PHP Podcast Episode 12 - Is PHP 5.4 really coming soon?

DevShed: Working with the Tidy Library in PHP 5

Zend Developer Zone: PHP Abstract Podcast Episode 27: Introducing PECL Picks


Community Events

Don't see your event here?
Let us know!


podcast release library introduction framework example application composer api opinion series community php7 symfony2 video interview laravel install performance version

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework