Skip to content

Proposal: enable language parsing by default #240

@gRegorLove

Description

@gRegorLove

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"
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions