Skip to content

Commit c6094c6

Browse files
committed
fixes for checkValidity and reportValidity
1 parent e2f0dd9 commit c6094c6

8 files changed

+16
-16
lines changed

src/Web/HTML/HTMLButtonElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ exports.validationMessage = function (button) {
194194

195195
exports.checkValidity = function (button) {
196196
return function () {
197-
return button.checkValidity;
197+
return button.checkValidity();
198198
};
199199
};
200200

201201
// ----------------------------------------------------------------------------
202202

203203
exports.reportValidity = function (button) {
204204
return function () {
205-
return button.reportValidity;
205+
return button.reportValidity();
206206
};
207207
};
208208

src/Web/HTML/HTMLFieldSetElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ exports.validationMessage = function (fieldset) {
8282

8383
exports.checkValidity = function (fieldset) {
8484
return function () {
85-
return fieldset.checkValidity;
85+
return fieldset.checkValidity();
8686
};
8787
};
8888

8989
// ----------------------------------------------------------------------------
9090

9191
exports.reportValidity = function (fieldset) {
9292
return function () {
93-
return fieldset.reportValidity;
93+
return fieldset.reportValidity();
9494
};
9595
};
9696

src/Web/HTML/HTMLInputElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,15 +614,15 @@ exports.validationMessage = function (input) {
614614

615615
exports.checkValidity = function (input) {
616616
return function () {
617-
return input.checkValidity;
617+
return input.checkValidity();
618618
};
619619
};
620620

621621
// ----------------------------------------------------------------------------
622622

623623
exports.reportValidity = function (input) {
624624
return function () {
625-
return input.reportValidity;
625+
return input.reportValidity();
626626
};
627627
};
628628

src/Web/HTML/HTMLKeygenElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ exports.validationMessage = function (keygen) {
122122

123123
exports.checkValidity = function (keygen) {
124124
return function () {
125-
return keygen.checkValidity;
125+
return keygen.checkValidity();
126126
};
127127
};
128128

129129
// ----------------------------------------------------------------------------
130130

131131
exports.reportValidity = function (keygen) {
132132
return function () {
133-
return keygen.reportValidity;
133+
return keygen.reportValidity();
134134
};
135135
};
136136

src/Web/HTML/HTMLObjectElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ exports.validationMessage = function (object) {
146146

147147
exports.checkValidity = function (object) {
148148
return function () {
149-
return object.checkValidity;
149+
return object.checkValidity();
150150
};
151151
};
152152

153153
// ----------------------------------------------------------------------------
154154

155155
exports.reportValidity = function (object) {
156156
return function () {
157-
return object.reportValidity;
157+
return object.reportValidity();
158158
};
159159
};
160160

src/Web/HTML/HTMLOutputElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ exports.validationMessage = function (output) {
9090

9191
exports.checkValidity = function (output) {
9292
return function () {
93-
return output.checkValidity;
93+
return output.checkValidity();
9494
};
9595
};
9696

9797
// ----------------------------------------------------------------------------
9898

9999
exports.reportValidity = function (output) {
100100
return function () {
101-
return output.reportValidity;
101+
return output.reportValidity();
102102
};
103103
};
104104

src/Web/HTML/HTMLSelectElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ exports.validationMessage = function (select) {
194194

195195
exports.checkValidity = function (select) {
196196
return function () {
197-
return select.checkValidity;
197+
return select.checkValidity();
198198
};
199199
};
200200

201201
// ----------------------------------------------------------------------------
202202

203203
exports.reportValidity = function (select) {
204204
return function () {
205-
return select.reportValidity;
205+
return select.reportValidity();
206206
};
207207
};
208208

src/Web/HTML/HTMLTextAreaElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,15 @@ exports.validationMessage = function (textarea) {
290290

291291
exports.checkValidity = function (textarea) {
292292
return function () {
293-
return textarea.checkValidity;
293+
return textarea.checkValidity();
294294
};
295295
};
296296

297297
// ----------------------------------------------------------------------------
298298

299299
exports.reportValidity = function (textarea) {
300300
return function () {
301-
return textarea.reportValidity;
301+
return textarea.reportValidity();
302302
};
303303
};
304304

0 commit comments

Comments
 (0)