Make WordPress Core

Opened 6 weeks ago

Last modified 5 weeks ago

#63391 new defect (bug)

Docs: Typo correction – 'compatability' to 'compatibility'

Reported by: truptikanzariya's profile truptikanzariya Owned by:
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: HTML API Keywords: has-patch
Focuses: docs Cc:

Description

There is a small typo in the following file:

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

The word "compatability" is misspelled and should be corrected to "compatibility".

Incorrect:
No-quirks mode document compatability mode.
Quirks mode document compatability mode.

Corrected:
No-quirks mode document compatibility mode.
Quirks mode document compatibility mode.

This fix improves accuracy and maintains consistency with the correct spelling used elsewhere.

Attachments (2)

ticket2.patch (2.0 KB) - added by truptikanzariya 6 weeks ago.
63391.patch (3.3 KB) - added by nareshbheda 5 weeks ago.
Typo correction: wp-includes/html-api/class-wp-html-doctype-info.php

Download all attachments as: .zip

Change History (7)

This ticket was mentioned in PR #8769 on WordPress/wordpress-develop by @dhruvang21.


6 weeks ago
#1

#2 @SergeyBiryukov
6 weeks ago

  • Component changed from General to HTML API
  • Milestone changed from Awaiting Review to 6.9

@abcd95 commented on PR #8769:


5 weeks ago
#3

@dhruvang21 I think there are a lot more instances where the word compatability is used throughout the codebase.
For instance -

https://github.com/WordPress/wordpress-develop/blob/4dd067fb80096acf764e9732f7cfddc4d433b485/src/wp-includes/html-api/class-wp-html-doctype-info.php#L129-L136

@getsyash commented on PR #8769:


5 weeks ago
#4

I noticed the typo is also present in variable names like $this->indicated_compatability_mode. I’d like to fix those too, but since it affects functionality, I’ll ensure all references are updated. Please let me know if there are any backward compatibility concerns I should be aware of.

@nareshbheda
5 weeks ago

Typo correction: wp-includes/html-api/class-wp-html-doctype-info.php

@dhruvang21 commented on PR #8769:


5 weeks ago
#5

@himanshupathak95 I also noticed that there are additional instances where typos need to be fixed. However, I agree with @getsyash — I think it’s best to wait for input from the reviewers, as they’ll definitely help guide us and suggest the appropriate solutions.

Note: See TracTickets for help on using tickets.