Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make language of a node consider lang attribute on SVG elements. #9882

Merged
merged 2 commits into from
Oct 26, 2023

Commits on Oct 25, 2023

  1. 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 11dc4c7 (PR whatwg#9796,
    fixing whatwg#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.
    dbaron committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    a81dec0 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    65624df View commit details
    Browse the repository at this point in the history