[thelist] Help me testing a helper object for DOMscripting

shyam shyam at xerago.com
Mon Jan 23 02:33:58 CST 2006


Christian Heilmann wrote:

>Following the earlier discussion here about reading the next sibling
>element of a current element and making sure it really is an element
>and not a text node (line break), I decided to add a small helper
>object to my upcoming JavaScript book that takes care of some of these
>issues.
>
>Give it a try:
>http://icant.co.uk/sandbox/domhelp/
>
>- Is that something that really can help save beginners frustration
>about different browsers and DOM oddities?
>- Is it pretty bullet proof?
>- can you think of other methods that should be in there?
>- how high would the sea level be if there weren't any sponges?
>
>I promise to add a greeting, should you come up with something I
>forgot or find out I did wrong. I don't get free copies though :-)
>  
>
You forgot to null the DOMhelp.debug in the stopDebug function which 
results in not being able to remove and add the debug monitor.

>I am aware that there are a lot of libraries already out there, but
>most of them are just too massive to use in a beginner book.
>
>regards,
>Chris
>
>
>--
>Chris Heilmann
>Blog: http://www.wait-till-i.com
>Writing: http://icant.co.uk/
>Binaries: http://www.onlinetools.org/
>  
>



More information about the thelist mailing list