fgnass / domino

Server-side DOM implementation based on Mozilla's dom.js
BSD 2-Clause "Simplified" License
768 stars 120 forks source link

Focus method implementation (and probably few others) #125

Closed maciejmrozinski closed 6 years ago

maciejmrozinski commented 6 years ago

Hi,

I received error below using Angular Universal: divElement.focus() -> focus is not a function

As far as i can see, right now, only a element "implements" (as empty function) focus method. Shouldn't it be defined on all (or almost all) element types? Here, focus and some other methods are defined on base HtmlElement: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement