From a81dec0f83b59f71a5c5b44b496f3bb1d2c56aad Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Wed, 25 Oct 2023 10:09:59 -0400 Subject: [PATCH 1/2] Make language of a node consider lang attribute on SVG elements. The rules for finding the language of a node were made somewhat more formal in 11dc4c7557f5a4c879c1ce65b9cb59b91310bbf5 (PR #9796, fixing #3699). Both before and after that change they considered the lang attribute in the XML namespace, and the lang attribute in no namespace on HTML elements. However, the SVG spec at https://www.w3.org/TR/2018/CR-SVG2-20181004/struct.html#LangSpaceAttrs has very similar wording to the HTML spec prior to that edit, and also defined a lang attribute on SVG elements. This updates the language of a node algorithm in HTML to consider SVG elements as well, since implementing it as written (without this change) breaks the lang attribute in SVG. --- source | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source b/source index 7289a9999c8..2b9eae7184e 100644 --- a/source +++ b/source @@ -13326,8 +13326,9 @@ Transport Protocol">HTTP</abbr> today.</p>