Menu

15 pages declared lang="en". 75-98% of their characters were Han.
πŸ“°

15 pages declared lang="en". 75-98% of their characters were Han.

DEV Community: pythonΒ·tong zhangΒ·13 days ago
#p3ltWNNm
#devtopython#devto#dev#pages#self
Reading 0:00
15s threshold

Fifteen pages told the browser they were English. Between 75% and 98% of their characters were Han.

I only found it because I stopped checking meta tags and started counting characters. The pages had titles, descriptions, canonicals, one h1 each, valid JSON-LD β€” everything the usual audit looks at. The lang attribute was the one field nobody had ever verified against the body text, and on four domains it was wrong on every page I sampled.

What I sampled

I started with 40 domains. Twelve of their root sitemaps listed nothing but child sitemaps on subdomains, so there was no page URL to sample β€” that is a different bug and a different post. The remaining 28 domains gave me up to four page URLs each, taken from their own sitemaps and filtered to URLs on the site's own host, excluding the homepage and any .xml entries. No homepage, no sitemap, no XML: real HTML pages only.

That produced 106 pages.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.