[webkit-changes] [WebKit/WebKit] e13876: HTML parser phone number handling should better ac...

Anne van Kesteren noreply at github.com
Fri Jan 10 07:37:24 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e13876c09f11a7ae201d5a6cc540015ca0f530ca
      https://github.com/WebKit/WebKit/commit/e13876c09f11a7ae201d5a6cc540015ca0f530ca
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2025-01-10 (Fri, 10 Jan 2025)

  Changed paths:
    M LayoutTests/fast/dom/linkify-phone-numbers-expected.html
    M LayoutTests/fast/dom/linkify-phone-numbers.html
    M Source/WebCore/html/parser/HTMLTreeBuilder.cpp

  Log Message:
  -----------
  HTML parser phone number handling should better account for MathML
https://bugs.webkit.org/show_bug.cgi?id=284831
rdar://141632782

Reviewed by Chris Dumez.

When we are not in an HTML subtree it does not make sense to detect
phone numbers and insert HTML a start and end tag tokens when one is
found. It's especially dubious for MathML.

* LayoutTests/fast/dom/linkify-phone-numbers-expected.html:
* LayoutTests/fast/dom/linkify-phone-numbers.html:
* Source/WebCore/html/parser/HTMLTreeBuilder.cpp:
(WebCore::shouldParseTelephoneNumbersInNode):

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



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


More information about the webkit-changes mailing list