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

Proposal: enable language parsing by default #240

Open
gRegorLove opened this issue Jul 5, 2022 · 0 comments
Open

Proposal: enable language parsing by default #240

gRegorLove opened this issue Jul 5, 2022 · 0 comments

Comments

@gRegorLove
Copy link
Member

This feature has been around for a while and there was discussion about enabling it by default. https://php.microformats.io/ has the flag enabled if you want to try it out.

If we do, I'm not sure whether or not it should be under a new minor version release. It changes the structure adding lang if the document specifies language(s). While it's been in the parser for a while, I don't think we have evidence of it being enabled/used (other than the test parser above), so a minor version might be a good idea.

<html lang="en"> <div class="h-entry">This test is in English.</div> </html>
{
    "items": [
        {
            "type": [
                "h-entry"
            ],
            "properties": {
                "name": [
                    "This test is in English."
                ]
            },
            "lang": "en"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant