Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'sheet' does not exist on type 'SVGStyleElement' #36896

Closed
waterplea opened this issue Feb 20, 2020 · 3 comments
Closed

Property 'sheet' does not exist on type 'SVGStyleElement' #36896

waterplea opened this issue Feb 20, 2020 · 3 comments
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this PursuitFellowship Help wanted from Pursuit fellowship; others please avoid until Dec 19
Milestone

Comments

@waterplea
Copy link

TypeScript Version: 3.7.x-dev.201xxxxx

Search Terms: sheet, SVGStyleElement

Code

var c: SVGStyleElement;

console.log(c.sheet);

Expected behavior:
No error on c.sheet

Actual behavior:
Error Property 'sheet' does not exist on type 'SVGStyleElement'
Playground Link:
https://www.typescriptlang.org/play/?ssl=3&ssc=22&pln=1&pc=1#code/G4QwTgBAxgXBDKA1A4vALgTwDYFMCiuAtjgHZoDcAsAFA1QD2JAzvbgHRb0DmAFFG0wAWOHGgCU5IA

Additional info
Both Chrome and Firefox have sheet on SVGStyleElement.

@waterplea
Copy link
Author

It also should bee CSSStyleSheet not StyleSheet on HTMLStyleElement and SVGStyleElement according to MDN:
https://developer.mozilla.org/en-US/docs/Web/API/LinkStyle

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Mar 2, 2020
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Mar 2, 2020
@RyanCavanaugh RyanCavanaugh added the Help Wanted You can do this label Mar 2, 2020
@sandersn sandersn added the PursuitFellowship Help wanted from Pursuit fellowship; others please avoid until Dec 19 label Sep 18, 2020
@conniefan
Copy link

hi, I'm taking this as my first bug!

@jakebailey
Copy link
Member

This was fixed in #42067.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this PursuitFellowship Help wanted from Pursuit fellowship; others please avoid until Dec 19
Projects
None yet
Development

No branches or pull requests

5 participants