DocumentFragment missing getElementById() #14499
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
TypeScript Version: 2.2.1
Code
Expected behavior:
ShadowRoot inherits getElementById() from DocumentFragment, which returns an Element, and appends a
<p>
tag to the<div>
MDN DocumentFragment
Actual behavior:
error TS2339: Property 'getElementById' does not exist on type 'ShadowRoot'.
The text was updated successfully, but these errors were encountered: