Published on 2007-05-13 01:09:28
Quite after Prototype 1.5.1 final release, a new DOM Builder just popped in the svn trunk to help making easier DOM manipulation. In the sample below you can specify both the element and its attributes in a single call, entirely cross-browser since it maps the attributes to correct properties internally. You can get the latest Prototype SVN build and play with the new DOM builder. The next Prototype is promising definitely more JavaScript fun !
Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved