This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
... but ShadowRoot.getElementById() returns HTMLElement, not Element like the DocumentFragment's getElementbyId() http://w3c.github.io/webcomponents/spec/shadow/#shadowroot-object https://dom.spec.whatwg.org/#nonelementparentnode
Why does it override it to begin with? I think that's a separate bug.
perhaps I was unclear. I think ShadowRoot shouldn't have getElementById, since it is there already in DocumentFragment.
Looks like the mismatched return type is only a spec bug: Blink's ShadowRoot.idl lists the return time as Element.
Nice catch. It seems we can get rid of getElementById from ShadowRoot. Let me update the spec.
Fixed: https://github.com/w3c/webcomponents/commit/3d5f147812edaf74cc4f07d294836cafdf48534f