Greetings, Earthlings.

I have revamped the article, and added new functionality to the technique.
It was pointed out to me that the HTML 4 that was being generated by the PHP
was invalid, because I had forgotten about the trailing slashes on the empty
elements.

To solve this problem, I wrote a function that buffers the entire contents
of the page and then changes " />" to ">" before flushing the buffer. I had
to reasonably assume that " />" wasn't going to appear in any circumstance
other than one I was looking for.

As a result, the technique now delivers valid XHTML or valid HTML4 as
expected. Anyone who may have already implemented this technique should make
the appropriate changes to their include file.

Simon Jessey
----------------------------------
mail: [EMAIL PROTECTED]
blog: http://jessey.net/blog/
work: http://keystonewebsites.com/

*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to