opal-browser icon indicating copy to clipboard operation
opal-browser copied to clipboard

DocumentFragment.getElementById() not implemented

Open balmoral opened this issue 9 years ago • 1 comments

DocumentFragment.getElementById() is not implemented for Browser::DOM::DocumentFragment

https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment

balmoral avatar Feb 11 '16 07:02 balmoral

DocumentFragment implements ParentNode which doesn't implement getElementById (this may change in the future though). We wrongly assume at this point, that DocumentFragment inherits from Element, but actually it inherits from Node. A robust implementation should implement a module ParentNode which would be included by both Element, DocumentFragment and Document (and make them all inherit from Node).

See #46

hmdne avatar Jul 05 '20 19:07 hmdne