The symptom here is the way how, every so often, you run across comments saying "The DOM sucks, browsers should standardise and ship jQuery". But jQuery doesn't solve every problem and might not age gracefully. The obvious response is to go in the other direction, and have all the layout code specified by the page.
I don't know how you can gradually introduce this, though. Maybe a new doctype? UI toolkits for <canvas>?
I don't know how you can gradually introduce this, though. Maybe a new doctype? UI toolkits for <canvas>?