Language attribute should only contain first value from meta tag.
AXNodeObject::Language was returning the full meta tag value "en, fr" instead of only the first element "en" when computing the language value for kRootWebArea. A value containing comma is not a valid BCP47 language tag. [1] specifies the DOM lang attribute should be a valid BCP47 language tag, whereas a comma separated list is instead a language priority list. I'm not sure if this necessarily applies to our accessible interface, but it seems like the closest spec and this behaviour is consistent with our other return values. [1] https://html.spec.whatwg.org/multipage/dom.html#language AX-Relnotes: n/a. Change-Id: I0e7b2826e3cca0b9392a4add39c99244018e9dfb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505291 Commit-Queue: Chris Hall <chrishall@chromium.org> Reviewed-by:Alice Boxhall <aboxhall@chromium.org> Reviewed-by:
Nektarios Paisios <nektar@chromium.org> Cr-Commit-Position: refs/heads/master@{#825263}
Showing
Please register or sign in to comment