Skip to content

reportValidity() missing from HTMLInputElement and HTMLObjectElement #26133

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

Closed
srittau opened this issue Aug 1, 2018 · 0 comments
Closed

reportValidity() missing from HTMLInputElement and HTMLObjectElement #26133

srittau opened this issue Aug 1, 2018 · 0 comments
Assignees
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

Comments

@srittau
Copy link

srittau commented Aug 1, 2018

TypeScript Version: 3.0.1

Search Terms: reportValidity

Code

const input = document.createElement("input");
input.reportValidity();
const object = document.createElement("object");
object.reportValidity();

Expected behavior:

No errors.

Actual behavior:

foo.ts:2:7 - error TS2339: Property 'reportValidity' does not exist on type 'HTMLInputElement'.

2 input.reportValidity();
        ~~~~~~~~~~~~~~

foo.ts:4:8 - error TS2339: Property 'reportValidity' does not exist on type 'HTMLObjectElement'.

4 object.reportValidity();
         ~~~~~~~~~~~~~~

Related MDN documentation:

I have a pull request ready.

@mhegazy mhegazy self-assigned this Aug 2, 2018
@mhegazy mhegazy added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet labels Aug 2, 2018
@mhegazy mhegazy added this to the TypeScript 3.1 milestone Aug 2, 2018
@mhegazy mhegazy reopened this Aug 2, 2018
@mhegazy mhegazy added Domain: Quick Fixes Editor-provided fixes, often called code actions. Fixed A PR has been merged for this issue and removed Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Aug 2, 2018
@mhegazy mhegazy removed the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Aug 2, 2018
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 Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants