<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 02:11:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Scott Johnson's Blog: Your Simple PHP Code Snippet for Monday]]></title>
      <guid>http://www.phpdeveloper.org/news/5332</guid>
      <link>http://www.phpdeveloper.org/news/5332</link>
      <description><![CDATA[<p>
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). <i>Scott Johnson</i> had one such instance, so he wrote a little script to help with it.
</p>
<quote>
<i>
<p>
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. 
</p>
<p>
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. 
</p>
</i>
</quote>
<p>
He has <a href="http://fuzzyblog.com/divcounter/index.txt">the source</a> of the script included in the post as well as two examples of using it with <a href="http://fuzzyblog.com/divcounter/?url=http://msn.com">msn.com</a> and <a href="http://fuzzyblog.com/divcounter/?url=http://news.com/">news.com</a>. Other suggestions of tools to help with these problems are listed in the comments - the <a href="http://jennifermadden.com/scripts/ViewRenderedSource.html">View Rendered Source</a> Firefox extension, and the <a href="https://addons.mozilla.org/firefox/249/">HTML Validator</a> for Firefox.
</p>]]></description>
      <pubDate>Tue, 09 May 2006 06:03:23 -0500</pubDate>
    </item>
  </channel>
</rss>
