News Feed
Jobs Feed
Sections




News Archive
Kae Verans' Blog:
innerHTML in php-dom
July 28, 2008 @ 11:13:16

Kae Verans has written up a handy snippet of code to try to mimic the innerHTML property that Javascript lets you have access to.

DOM does not officially have an innerHTML parameter, but it's incredibly useful. I found a need for something similar when working on some DOM stuff, so had to write a version.

Technically it's an "outerHTML" not inner, but it works about the same. The code and an example of its use is included.

0 comments voice your opinion now!
innrehtml outerhtml dom snippet example


blog comments powered by Disqus

Similar Posts

Court Ewing's Blog: A Simple Alternative to Global Registry Dependency

PHPied.com: JSON renderer for Text_Highlight

Bit-Tech.net Formus: PHP "raycaster" 3D renderer

SitePoint PHP Blog: The Joy of Regular Expressions [2]

DevShed: Abstract Classes in PHP - Setting Up a Concrete Example


Community Events











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


interview unittest functional language tool testing framework conference release code introduction series opinion development phpunit application example community podcast zendframework2

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