Everywhere: Rename equals_ignoring_case => equals_ignoring_ascii_case

Let's make it clear that these functions deal with ASCII case only.
This commit is contained in:
Andreas Kling 2023-03-10 08:48:54 +01:00
commit a504ac3e2a
Notes: sideshowbarker 2024-07-17 18:13:59 +09:00
76 changed files with 480 additions and 476 deletions

View file

@ -515,7 +515,7 @@ ErrorOr<Name, ParseError> Parser::parse_processing_instruction_target()
auto target = TRY(parse_name());
auto accept = accept_rule();
if (target.equals_ignoring_case("xml"sv) && m_options.treat_errors_as_fatal) {
if (target.equals_ignoring_ascii_case("xml"sv) && m_options.treat_errors_as_fatal) {
return parse_error(
m_lexer.tell() - target.length(),
"Use of the reserved 'xml' name for processing instruction target name is disallowed");