I am building a library recently and I am extending the DOM element returned by document.querySelector directly. The good part is I did not extend the prototype of Element, I only extend the specific element returned by document.querySelector.
I understand it is not right earlier years especially for IE. so I do want to know if it is ok or good(not effect performance and not mess up prototypes) for modern browsers now days.
Best Regards, Hao