You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Libraries/LibWeb/HTML/HTMLElement.cpp
+25-21Lines changed: 25 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -2224,15 +2224,15 @@ HTMLElement::AutocapitalizationHint HTMLElement::own_autocapitalization_hint() c
2224
2224
{
2225
2225
// The autocapitalization processing model is based on selecting among five autocapitalization hints, defined as follows:
2226
2226
//
2227
-
//default
2227
+
//Default
2228
2228
// The user agent and input method should make their own determination of whether or not to enable autocapitalization.
2229
2229
// none
2230
2230
// No autocapitalization should be applied (all letters should default to lowercase).
2231
-
//sentences
2231
+
//Sentences
2232
2232
// The first letter of each sentence should default to a capital letter; all other letters should default to lowercase.
2233
-
//words
2233
+
//Words
2234
2234
// The first letter of each word should default to a capital letter; all other letters should default to lowercase.
2235
-
//characters
2235
+
//Characters
2236
2236
// All letters should default to uppercase.
2237
2237
2238
2238
// The autocapitalize attribute is an enumerated attribute whose states are the possible autocapitalization hints.
@@ -2241,14 +2241,14 @@ HTMLElement::AutocapitalizationHint HTMLElement::own_autocapitalization_hint() c
2241
2241
// their state mappings are as follows:
2242
2242
2243
2243
// Keyword | State
2244
-
// off | none
2244
+
// off | None
2245
2245
// none |
2246
-
// on | sentences
2246
+
// on | Sentences
2247
2247
// sentences |
2248
-
// words | words
2249
-
// characters | characters
2248
+
// words | Words
2249
+
// characters | Characters
2250
2250
2251
-
// The attribute's missing value default is the default state, and its invalid value default is the sentences state.
2251
+
// The attribute's missing value default is the Default state, and its invalid value default is the Sentences state.
2252
2252
2253
2253
// To compute the own autocapitalization hint of an element element, run the following steps:
2254
2254
// 1. If the autocapitalize content attribute is present on element, and its value is not the empty string, return the
@@ -2270,12 +2270,13 @@ HTMLElement::AutocapitalizationHint HTMLElement::own_autocapitalization_hint() c
2270
2270
return AutocapitalizationHint::Sentences;
2271
2271
}
2272
2272
2273
-
// If element is an autocapitalize-and-autocorrect inheriting element and has a non-null form owner, return the own autocapitalization hint of element's form owner.
2273
+
// 2. If element is an autocapitalize-and-autocorrect inheriting element and has a non-null form owner, return the
2274
+
// own autocapitalization hint of element's form owner.
// To compute the used autocorrection state of an element element, run these steps:
2335
-
// 1. If element is an input element whose type attribute is in one of the URL, E-mail, or Password states, then return off.
2336
+
// 1. If element is an input element whose type attribute is in one of the URL, E-mail, or Password states, then
2337
+
// return Off.
2336
2338
if (autoconst* input_element = as_if<HTMLInputElement>(this)) {
2337
2339
if (first_is_one_of(input_element->type_state(), HTMLInputElement::TypeAttributeState::URL, HTMLInputElement::TypeAttributeState::Email, HTMLInputElement::TypeAttributeState::Password))
// The autocorrect getter steps are: return true if the element's used autocorrection state is on and false if the element's used autocorrection state is off.
2363
+
// The autocorrect getter steps are: return true if the element's used autocorrection state is On and false if the
0 commit comments