Skip to content

Commit 84b2086

Browse files
committed
Docs: Fix typos in HTML API documentation.
Corrects misspelling "compatability" to "compatibility." Developed in #8769. Props dhruvang21, jonsurrell, abcd95, getsyash, truptikanzariya, nareshbheda, sergeybiryukov, dmsnell, sabernhardt. See #63391. git-svn-id: https://develop.svn.wordpress.org/trunk@60540 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ccfd74c commit 84b2086

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/wp-includes/html-api/class-wp-html-doctype-info.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @see https://html.spec.whatwg.org/#the-doctype
3737
*
3838
* DOCTYPE declarations comprise four properties: a name, public identifier, system identifier,
39-
* and an indication of which document compatability mode they would imply if an HTML parser
39+
* and an indication of which document compatibility mode they would imply if an HTML parser
4040
* hadn't already determined it from other information.
4141
*
4242
* @see https://html.spec.whatwg.org/#the-initial-insertion-mode
@@ -128,14 +128,14 @@ class WP_HTML_Doctype_Info {
128128
public $system_identifier = null;
129129

130130
/**
131-
* Which document compatability mode this DOCTYPE declaration indicates.
131+
* Which document compatibility mode this DOCTYPE declaration indicates.
132132
*
133133
* This value should be considered "read only" and not modified.
134134
*
135-
* When an HTML parser has not already set the document compatability mode,
135+
* When an HTML parser has not already set the document compatibility mode,
136136
* (e.g. "quirks" or "no-quirks" mode), it will infer if from the properties
137137
* of the appropriate DOCTYPE declaration, if one exists. The DOCTYPE can
138-
* indicate one of three possible document compatability modes:
138+
* indicate one of three possible document compatibility modes:
139139
*
140140
* - "no-quirks" and "limited-quirks" modes (also called "standards" mode).
141141
* - "quirks" mode (also called `CSS1Compat` mode).

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4504,7 +4504,7 @@ public function get_doctype_info(): ?WP_HTML_Doctype_Info {
45044504
const COMMENT_AS_INVALID_HTML = 'COMMENT_AS_INVALID_HTML';
45054505

45064506
/**
4507-
* No-quirks mode document compatability mode.
4507+
* No-quirks mode document compatibility mode.
45084508
*
45094509
* > In no-quirks mode, the behavior is (hopefully) the desired behavior
45104510
* > described by the modern HTML and CSS specifications.
@@ -4519,7 +4519,7 @@ public function get_doctype_info(): ?WP_HTML_Doctype_Info {
45194519
const NO_QUIRKS_MODE = 'no-quirks-mode';
45204520

45214521
/**
4522-
* Quirks mode document compatability mode.
4522+
* Quirks mode document compatibility mode.
45234523
*
45244524
* > In quirks mode, layout emulates behavior in Navigator 4 and Internet
45254525
* > Explorer 5. This is essential in order to support websites that were

0 commit comments

Comments
 (0)