I just broke two cardinal rules. From the literary world:
Show, don’t tell.
And from the culinary world:
Don’t experiment on guests.
Thank you, Jimmy Vu, for being “experimented on” and graciously letting me know that the code I posted yesterday doesn’t work. It turns out the code was correct — except it used a feature I hadn’t written, namely a setter for innerText(). This morning, I added the missing setter and published the new version, LightningDOM 1.3.1.
I also reworked Jimmy’s example into an interactive demonstration, the LightningDOM Playground. It preloads a working example and from there you can add all the DOM manipulations you want and try it out interactively. Enjoy!
4 responses so far ↓
rborn // September 16, 2008 at 6:55 pm |
the playground is not working
500 server error for js file
Peter Rust // September 16, 2008 at 7:06 pm |
Fixed. (it was a case sensitivity issue, the HTML was including “lightningdom-1.3.1.js” and the server only responds to “LightningDOM-1.3.1.js”)
Thanks, rborn!
Roman Heinrich // October 7, 2008 at 2:53 pm |
The playground is not working in Safari 3 (Version 3.1.2 (5525.20.1)), but it works in Firefox 3. Did not investigate it further, maybe you could take a look at it. Cheers!
Peter Rust // October 7, 2008 at 5:27 pm |
Roman, thanks for the tip! I’ll make a note to check it out in Safari.