HTMLElement, etc.) is a bad idea.
it wrapped everything in
$() instead of extending prototypes, which is safer in terms of compatibility with other libraries and browser updates.
DOM extension is one of the biggest mistakes Prototype.js has ever done.