diff --git a/wp-includes/html-api/class-wp-html-doctype-info.php b/wp-includes/html-api/class-wp-html-doctype-info.php
index e096be5d55..fd50ae05f5 100644
--- a/wp-includes/html-api/class-wp-html-doctype-info.php
+++ b/wp-includes/html-api/class-wp-html-doctype-info.php
@@ -36,7 +36,7 @@
* @see https://html.spec.whatwg.org/#the-doctype
*
* DOCTYPE declarations comprise four properties: a name, public identifier, system identifier,
- * and an indication of which document compatability mode they would imply if an HTML parser
+ * and an indication of which document compatibility mode they would imply if an HTML parser
* hadn't already determined it from other information.
*
* @see https://html.spec.whatwg.org/#the-initial-insertion-mode
@@ -128,14 +128,14 @@ class WP_HTML_Doctype_Info {
public $system_identifier = null;
/**
- * Which document compatability mode this DOCTYPE declaration indicates.
+ * Which document compatibility mode this DOCTYPE declaration indicates.
*
* This value should be considered "read only" and not modified.
*
- * When an HTML parser has not already set the document compatability mode,
+ * When an HTML parser has not already set the document compatibility mode,
* (e.g. "quirks" or "no-quirks" mode), it will infer if from the properties
* of the appropriate DOCTYPE declaration, if one exists. The DOCTYPE can
- * indicate one of three possible document compatability modes:
+ * indicate one of three possible document compatibility modes:
*
* - "no-quirks" and "limited-quirks" modes (also called "standards" mode).
* - "quirks" mode (also called `CSS1Compat` mode).
diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php
index 032ca2af32..83c1784418 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -4504,7 +4504,7 @@ class WP_HTML_Tag_Processor {
const COMMENT_AS_INVALID_HTML = 'COMMENT_AS_INVALID_HTML';
/**
- * No-quirks mode document compatability mode.
+ * No-quirks mode document compatibility mode.
*
* > In no-quirks mode, the behavior is (hopefully) the desired behavior
* > described by the modern HTML and CSS specifications.
@@ -4519,7 +4519,7 @@ class WP_HTML_Tag_Processor {
const NO_QUIRKS_MODE = 'no-quirks-mode';
/**
- * Quirks mode document compatability mode.
+ * Quirks mode document compatibility mode.
*
* > In quirks mode, layout emulates behavior in Navigator 4 and Internet
* > Explorer 5. This is essential in order to support websites that were
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 0fd27bde4e..2b5346b369 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.9-alpha-60539';
+$wp_version = '6.9-alpha-60540';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.