@@ -133,7 +133,7 @@ class WP_HTML_Doctype_Info {
133
133
* This value should be considered "read only" and not modified.
134
134
*
135
135
* When an HTML parser has not already set the document compatibility mode,
136
- * (e.g. "quirks" or "no-quirks" mode), it will infer if from the properties
136
+ * (e.g. "quirks" or "no-quirks" mode), it will be inferred from the properties
137
137
* of the appropriate DOCTYPE declaration, if one exists. The DOCTYPE can
138
138
* indicate one of three possible document compatibility modes:
139
139
*
@@ -150,7 +150,7 @@ class WP_HTML_Doctype_Info {
150
150
*
151
151
* @var string One of "no-quirks", "limited-quirks", or "quirks".
152
152
*/
153
- public $ indicated_compatability_mode ;
153
+ public $ indicated_compatibility_mode ;
154
154
155
155
/**
156
156
* Constructor.
@@ -194,7 +194,7 @@ private function __construct(
194
194
* > The force-quirks flag is set to on.
195
195
*/
196
196
if ( $ force_quirks_flag ) {
197
- $ this ->indicated_compatability_mode = 'quirks ' ;
197
+ $ this ->indicated_compatibility_mode = 'quirks ' ;
198
198
return ;
199
199
}
200
200
@@ -203,7 +203,7 @@ private function __construct(
203
203
* public or system identifiers; short-circuit to avoid extra parsing.
204
204
*/
205
205
if ( 'html ' === $ name && null === $ public_identifier && null === $ system_identifier ) {
206
- $ this ->indicated_compatability_mode = 'no-quirks ' ;
206
+ $ this ->indicated_compatibility_mode = 'no-quirks ' ;
207
207
return ;
208
208
}
209
209
@@ -214,7 +214,7 @@ private function __construct(
214
214
* the document in upper case; thus no conversion is required here.
215
215
*/
216
216
if ( 'html ' !== $ name ) {
217
- $ this ->indicated_compatability_mode = 'quirks ' ;
217
+ $ this ->indicated_compatibility_mode = 'quirks ' ;
218
218
return ;
219
219
}
220
220
@@ -242,15 +242,15 @@ private function __construct(
242
242
'-/w3c/dtd html 4.0 transitional/en ' === $ public_identifier ||
243
243
'html ' === $ public_identifier
244
244
) {
245
- $ this ->indicated_compatability_mode = 'quirks ' ;
245
+ $ this ->indicated_compatibility_mode = 'quirks ' ;
246
246
return ;
247
247
}
248
248
249
249
/*
250
250
* > The system identifier is set to…
251
251
*/
252
252
if ( 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd ' === $ system_identifier ) {
253
- $ this ->indicated_compatability_mode = 'quirks ' ;
253
+ $ this ->indicated_compatibility_mode = 'quirks ' ;
254
254
return ;
255
255
}
256
256
@@ -259,7 +259,7 @@ private function __construct(
259
259
* If the public identifier is empty, none of the following conditions will match.
260
260
*/
261
261
if ( '' === $ public_identifier ) {
262
- $ this ->indicated_compatability_mode = 'no-quirks ' ;
262
+ $ this ->indicated_compatibility_mode = 'no-quirks ' ;
263
263
return ;
264
264
}
265
265
@@ -327,7 +327,7 @@ private function __construct(
327
327
str_starts_with ( $ public_identifier , '-//webtechs//dtd mozilla html 2.0// ' ) ||
328
328
str_starts_with ( $ public_identifier , '-//webtechs//dtd mozilla html// ' )
329
329
) {
330
- $ this ->indicated_compatability_mode = 'quirks ' ;
330
+ $ this ->indicated_compatibility_mode = 'quirks ' ;
331
331
return ;
332
332
}
333
333
@@ -340,7 +340,7 @@ private function __construct(
340
340
str_starts_with ( $ public_identifier , '-//w3c//dtd html 4.01 transitional// ' )
341
341
)
342
342
) {
343
- $ this ->indicated_compatability_mode = 'quirks ' ;
343
+ $ this ->indicated_compatibility_mode = 'quirks ' ;
344
344
return ;
345
345
}
346
346
@@ -356,7 +356,7 @@ private function __construct(
356
356
str_starts_with ( $ public_identifier , '-//w3c//dtd xhtml 1.0 frameset// ' ) ||
357
357
str_starts_with ( $ public_identifier , '-//w3c//dtd xhtml 1.0 transitional// ' )
358
358
) {
359
- $ this ->indicated_compatability_mode = 'limited-quirks ' ;
359
+ $ this ->indicated_compatibility_mode = 'limited-quirks ' ;
360
360
return ;
361
361
}
362
362
@@ -369,11 +369,11 @@ private function __construct(
369
369
str_starts_with ( $ public_identifier , '-//w3c//dtd html 4.01 transitional// ' )
370
370
)
371
371
) {
372
- $ this ->indicated_compatability_mode = 'limited-quirks ' ;
372
+ $ this ->indicated_compatibility_mode = 'limited-quirks ' ;
373
373
return ;
374
374
}
375
375
376
- $ this ->indicated_compatability_mode = 'no-quirks ' ;
376
+ $ this ->indicated_compatibility_mode = 'no-quirks ' ;
377
377
}
378
378
379
379
/**
@@ -387,15 +387,15 @@ private function __construct(
387
387
*
388
388
* // Normative HTML DOCTYPE declaration.
389
389
* $doctype = WP_HTML_Doctype_Info::from_doctype_token( '<!DOCTYPE html>' );
390
- * 'no-quirks' === $doctype->indicated_compatability_mode ;
390
+ * 'no-quirks' === $doctype->indicated_compatibility_mode ;
391
391
*
392
392
* // A nonsensical DOCTYPE is still valid, and will indicate "quirks" mode.
393
393
* $doctype = WP_HTML_Doctype_Info::from_doctype_token( '<!doctypeJSON SILLY "nonsense\'>' );
394
- * 'quirks' === $doctype->indicated_compatability_mode ;
394
+ * 'quirks' === $doctype->indicated_compatibility_mode ;
395
395
*
396
396
* // Textual quirks present in raw HTML are handled appropriately.
397
397
* $doctype = WP_HTML_Doctype_Info::from_doctype_token( "<!DOCTYPE\nhtml\n>" );
398
- * 'no-quirks' === $doctype->indicated_compatability_mode ;
398
+ * 'no-quirks' === $doctype->indicated_compatibility_mode ;
399
399
*
400
400
* // Anything other than a proper DOCTYPE declaration token fails to parse.
401
401
* null === WP_HTML_Doctype_Info::from_doctype_token( ' <!DOCTYPE>' );
0 commit comments