From 11457e533a7ca229bbeb749bff0835c95af07efb Mon Sep 17 00:00:00 2001 From: Callum Law Date: Mon, 26 May 2025 16:21:29 +1200 Subject: [PATCH] LibWeb: Update `is_autocapitalize_inheriting` method name with spec This was changed when the autocorrect attribute was introduced: https://github.com/whatwg/html/commit/7bab05a --- Libraries/LibWeb/HTML/FormAssociatedElement.h | 2 +- Libraries/LibWeb/HTML/HTMLButtonElement.h | 2 +- Libraries/LibWeb/HTML/HTMLFieldSetElement.h | 2 +- Libraries/LibWeb/HTML/HTMLInputElement.h | 2 +- Libraries/LibWeb/HTML/HTMLOutputElement.h | 2 +- Libraries/LibWeb/HTML/HTMLSelectElement.h | 2 +- Libraries/LibWeb/HTML/HTMLTextAreaElement.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Libraries/LibWeb/HTML/FormAssociatedElement.h b/Libraries/LibWeb/HTML/FormAssociatedElement.h index 21ee1d73f20..5debe808954 100644 --- a/Libraries/LibWeb/HTML/FormAssociatedElement.h +++ b/Libraries/LibWeb/HTML/FormAssociatedElement.h @@ -91,7 +91,7 @@ public: virtual bool is_resettable() const { return false; } // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize - virtual bool is_auto_capitalize_inheriting() const { return false; } + virtual bool is_autocapitalize_and_autocorrect_inheriting() const { return false; } // https://html.spec.whatwg.org/multipage/forms.html#concept-button virtual bool is_button() const { return false; } diff --git a/Libraries/LibWeb/HTML/HTMLButtonElement.h b/Libraries/LibWeb/HTML/HTMLButtonElement.h index 2a2ee516cae..a1409360477 100644 --- a/Libraries/LibWeb/HTML/HTMLButtonElement.h +++ b/Libraries/LibWeb/HTML/HTMLButtonElement.h @@ -60,7 +60,7 @@ public: virtual bool is_submittable() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize - virtual bool is_auto_capitalize_inheriting() const override { return true; } + virtual bool is_autocapitalize_and_autocorrect_inheriting() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#concept-button // https://html.spec.whatwg.org/multipage/form-elements.html#the-button-element:concept-button diff --git a/Libraries/LibWeb/HTML/HTMLFieldSetElement.h b/Libraries/LibWeb/HTML/HTMLFieldSetElement.h index 43d92f639fa..7b2a4901809 100644 --- a/Libraries/LibWeb/HTML/HTMLFieldSetElement.h +++ b/Libraries/LibWeb/HTML/HTMLFieldSetElement.h @@ -38,7 +38,7 @@ public: virtual bool is_listed() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize - virtual bool is_auto_capitalize_inheriting() const override { return true; } + virtual bool is_autocapitalize_and_autocorrect_inheriting() const override { return true; } virtual Optional default_role() const override { return ARIA::Role::group; } diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.h b/Libraries/LibWeb/HTML/HTMLInputElement.h index bad18338a0d..5317f22bd06 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.h +++ b/Libraries/LibWeb/HTML/HTMLInputElement.h @@ -182,7 +182,7 @@ public: virtual bool is_resettable() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize - virtual bool is_auto_capitalize_inheriting() const override { return true; } + virtual bool is_autocapitalize_and_autocorrect_inheriting() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#concept-button virtual bool is_button() const override; diff --git a/Libraries/LibWeb/HTML/HTMLOutputElement.h b/Libraries/LibWeb/HTML/HTMLOutputElement.h index f4d328b6f89..d35a0d85b0f 100644 --- a/Libraries/LibWeb/HTML/HTMLOutputElement.h +++ b/Libraries/LibWeb/HTML/HTMLOutputElement.h @@ -45,7 +45,7 @@ public: virtual bool is_resettable() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize - virtual bool is_auto_capitalize_inheriting() const override { return true; } + virtual bool is_autocapitalize_and_autocorrect_inheriting() const override { return true; } // ^HTMLElement // https://html.spec.whatwg.org/multipage/forms.html#category-label diff --git a/Libraries/LibWeb/HTML/HTMLSelectElement.h b/Libraries/LibWeb/HTML/HTMLSelectElement.h index c3e0035e3a1..44159c0e146 100644 --- a/Libraries/LibWeb/HTML/HTMLSelectElement.h +++ b/Libraries/LibWeb/HTML/HTMLSelectElement.h @@ -83,7 +83,7 @@ public: virtual bool is_resettable() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize - virtual bool is_auto_capitalize_inheriting() const override { return true; } + virtual bool is_autocapitalize_and_autocorrect_inheriting() const override { return true; } // ^HTMLElement // https://html.spec.whatwg.org/multipage/forms.html#category-label diff --git a/Libraries/LibWeb/HTML/HTMLTextAreaElement.h b/Libraries/LibWeb/HTML/HTMLTextAreaElement.h index cb4b02fd9fa..dffd0a6c624 100644 --- a/Libraries/LibWeb/HTML/HTMLTextAreaElement.h +++ b/Libraries/LibWeb/HTML/HTMLTextAreaElement.h @@ -60,7 +60,7 @@ public: virtual bool is_resettable() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize - virtual bool is_auto_capitalize_inheriting() const override { return true; } + virtual bool is_autocapitalize_and_autocorrect_inheriting() const override { return true; } // https://html.spec.whatwg.org/multipage/forms.html#category-label virtual bool is_labelable() const override { return true; }