News Feed

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

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

Paul Jones: The Difference Between Factories, Registries, and Service Locators

Evert Pot: PHP 5.5.0 released!

Egeniq Blog: QR tags beyond the hype

Jani Hartikainen's Blog: Zend_Acl part 1: Misconceptions and simple ACLs Using Callback Functions in PHP

Community Events

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

community interview podcast series conference release symfony2 language opinion example framework api performance install introduction application library php7 configure laravel

All content copyright, 2015 :: - Powered by the Solar PHP Framework