Are there general reasons not to deal with Document’s and Element’s prototype?
I like to create my own little framework, because my current project doesn’t need the mass of features of the existing frameworks.
I don’t need to support browsers which don’t support Element/Document-constructor and also will not execute scripts that are not under my control.
So would you recommend to extend the prototype or should I go the usual way and create own objects from Element/Document?
Do you plan to extend default DOM elements? If so, please don’t. Juriy Zaytsev (aka Kangax) clearly describes why not in What’s wrong with extending the DOM.