php-mf2 icon indicating copy to clipboard operation
php-mf2 copied to clipboard

Proposal: enable language parsing by default

Open gRegorLove opened this issue 3 years ago • 0 comments

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

gRegorLove avatar Jul 05 '22 06:07 gRegorLove