by simonsarris · 15y ago · 0 comments
This is especially true if you use node.js to write server-side JavaScript or use jQuery to hide some complexity or if you are making things with HTML5 Canvas, where your DOM interactions are often limited to that single object (or perhaps multiple Canvases). Some of the most impressive things I've seen in the last year were JavaScript sites that had nothing to do with even the slightest shred of DOM manipulation.
Of course I'm not saying that one shouldn't need or want to understand the DOM. It's just interesting to me how things have subtly changed, and as someone who loves and spends a large amount of time with Canvas, to see all these beautiful new things on the web with no DOM-aches needed.
(After all I agree 100% with Resig: JavaScript isn't broken, its the DOM that tends to foul things up.)
$('<div></div>').appendTo(document.body).dialog(dialogOptions);
Also when you are writing custom widgets you gotta understand the DOM, not even jQuery can hide everything away.Note: Still a WIP.