Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 58780c46605225fce11f07e303a07247d035a27c
      
https://github.com/WebKit/WebKit/commit/58780c46605225fce11f07e303a07247d035a27c
  Author: Eri Pazos Pérez <[email protected]>
  Date:   2026-04-19 (Sun, 19 Apr 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/tabindex-focus-001.tentative-expected.txt
    A LayoutTests/mathml/non-core/semantics-href-expected.html
    A LayoutTests/mathml/non-core/semantics-href.html
    R LayoutTests/mathml/presentation/semantics-href-expected.html
    R LayoutTests/mathml/presentation/semantics-href.html
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/mathml/MathMLElement.cpp
    M Source/WebCore/mathml/MathMLElement.h

  Log Message:
  -----------
  Deprecate href on all MathML elements except `<a>`
https://bugs.webkit.org/show_bug.cgi?id=310864

Reviewed by Frédéric Wang Nélar.

Add a new MathMLDisableHrefOnNonAnchorElement preference. When enabled,
it makes MathML elements other than a ignore the href attribute.

* LayoutTests/TestExpectations:
* 
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/tabindex-focus-001.tentative-expected.txt:
* LayoutTests/mathml/non-core/semantics-href-expected.html: Renamed from 
LayoutTests/mathml/presentation/semantics-href-expected.html.
* LayoutTests/mathml/non-core/semantics-href.html: Renamed from 
LayoutTests/mathml/presentation/semantics-href.html.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/mathml/MathMLElement.cpp:
(WebCore::MathMLElement::attributeChanged):
(WebCore::MathMLElement::isURLAttribute const):
(WebCore::MathMLElement::allowsHref const):
* Source/WebCore/mathml/MathMLElement.h:

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



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

Reply via email to