Describe the bug
gov-metadata requires og:locale when scoring federal US sites but an og:locale value of en_US is already assumed as the protocol default.
Expected behavior
This metadata value should be optional for content in US English and its absence (e.g. “Not present”) should not lower the score.
Desktop (please complete the following information):
OS: macOS Ventura 13.6.5
Browser: any
Version: n/a
Additional context
I’m not sure what the goal is here. If og:locale is documented by the protocol authors as optional metadata, where a default of en_US is assumed, what is the rationale for reducing the site’s grade if it is in fact localized to US English? Is there a consuming social application you have in mind that would require a US government site to have an explicit localization value set to work correctly? Is it comparing the lang property value of the HTML element?
If the goal is to encourage proactive inclusion of social metadata by developers, perhaps consider noting the absence of the element using a neutral indicator label but removing it from the score when it’s absence would have no negative affect on user experience. Then developers could be alerted that a possible—even anticipated—element is not present, without a claim being made that the absence caused detriment to the user. Ideally, there would also be a way to find additional technical information about why the metadata is valuable.
Describe the bug gov-metadata requires
og:locale
when scoring federal US sites but anog:locale
value ofen_US
is already assumed as the protocol default.To Reproduce Steps to reproduce the behavior:
<meta property="og:locale">
Expected behavior This metadata value should be optional for content in US English and its absence (e.g. “Not present”) should not lower the score.
Desktop (please complete the following information):
Additional context I’m not sure what the goal is here. If
og:locale
is documented by the protocol authors as optional metadata, where a default ofen_US
is assumed, what is the rationale for reducing the site’s grade if it is in fact localized to US English? Is there a consuming social application you have in mind that would require a US government site to have an explicit localization value set to work correctly? Is it comparing thelang
property value of the HTML element?If the goal is to encourage proactive inclusion of social metadata by developers, perhaps consider noting the absence of the element using a neutral indicator label but removing it from the score when it’s absence would have no negative affect on user experience. Then developers could be alerted that a possible—even anticipated—element is not present, without a claim being made that the absence caused detriment to the user. Ideally, there would also be a way to find additional technical information about why the metadata is valuable.
Refs: The Open Graph protocol A Guide to Sharing for Webmasters - Meta Metadata and tags you should include in your website - Search.gov