You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mf2 parsing spec should consider looking for a lang attribute on the <html> element, and making its value available in the "lang" key on the parsed results, e.g.
<htmllang="en-us"></html>
would result in
{
"items": [],
"lang": "en-us"
}
This change would make the page-wide language easily available to the consumer without them having to do additional parsing of their own, and would reduce the need to implement language inheritance mentioned in #3
The mf2 parsing spec should consider looking for a
lang
attribute on the<html>
element, and making its value available in the"lang"
key on the parsed results, e.g.would result in
This change would make the page-wide language easily available to the consumer without them having to do additional parsing of their own, and would reduce the need to implement language inheritance mentioned in #3
Parsing should be restricted to the
<html>
element rather than also looking on<body>
or taking the firstlang
attribute found, as<html>
is the preferred location for specifying the page-wide language.The text was updated successfully, but these errors were encountered: