Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 191c87d7da3d6dabe149606cdc98420f71562c71
      
https://github.com/WebKit/WebKit/commit/191c87d7da3d6dabe149606cdc98420f71562c71
  Author: Ahmad Saleem <[email protected]>
  Date:   2025-11-16 (Sun, 16 Nov 2025)

  Changed paths:
    M LayoutTests/TestExpectations
    R LayoutTests/mathml/presentation/mo-stretchy-case-sensitive-expected.html
    R LayoutTests/mathml/presentation/mo-stretchy-case-sensitive.html
    M Source/WebCore/mathml/MathMLPresentationElement.cpp

  Log Message:
  -----------
  MathML boolean attributes should be compared case-insensitively
https://bugs.webkit.org/show_bug.cgi?id=302586
rdar://164819048

Reviewed by Frédéric Wang.

This aligns WebKit with Web Specification [1]:

[1] https://w3c.github.io/mathml-core/#dfn-boolean

"A string that is an ASCII case-insensitive match to true or false."

Currently, MathML boolean attributes are compared using case-sensitive strings.
This causes values like "TrUe" or "FaLsE" to be treated as default instead of
their actual boolean meaning.

Change cachedBooleanAttribute() to use equalIgnoringASCIICase() for comparison.
This ensures that attribute values are interpreted correctly regardless of case.

* Source/WebCore/mathml/MathMLPresentationElement.cpp:
(WebCore::MathMLPresentationElement::cachedBooleanAttribute):
* LayoutTests/TestExpectations: Progression

> Removed test case based on old specification:
* LayoutTests/mathml/presentation/mo-stretchy-case-sensitive-expected.html: 
Removed.
* LayoutTests/mathml/presentation/mo-stretchy-case-sensitive.html: Removed.

Canonical link: https://commits.webkit.org/303107@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to