Giter VIP home page Giter VIP logo

Comments (7)

5e-Cleric avatar 5e-Cleric commented on June 28, 2024 1

Good catch, should have thought of adding lang attribute to print too, we'll be right on it.

from homebrewery.

5e-Cleric avatar 5e-Cleric commented on June 28, 2024

That Pull Request adds in the fix by setting the lang attribute on the div.pages element, which is high enough in the DOM to work and low enough to be accessed easily in the current configuration of the page.

from homebrewery.

Blackflighter avatar Blackflighter commented on June 28, 2024

Very nice, and looks like it was even a relatively simple fix - many thanks!

Just one thing (from just a cursory glance, so I might very well be wrong here): the current default value for the lang attribute seems to be en as opposed to en-US (though that was located in a different part of the repo). Maybe that ought to be adjusted accordingly?

from homebrewery.

5e-Cleric avatar 5e-Cleric commented on June 28, 2024

Actually no, as defined by W3C, lang codes in html do not include the country.

https://www.w3.org/International/O-help-lang.html

from homebrewery.

Blackflighter avatar Blackflighter commented on June 28, 2024

Ah! To clarify my words, perhaps the en-US should have been changed to en - looks like you made the change already.

from homebrewery.

ericscheid avatar ericscheid commented on June 28, 2024

Actually no, as defined by W3C, lang codes in html do not include the country.

https://www.w3.org/International/O-help-lang.html

That's a very old reference. More recent specs make mention of country and dialect variations.

https://www.w3.org/International/questions/qa-html-language-declarations

from homebrewery.

5e-Cleric avatar 5e-Cleric commented on June 28, 2024

According to that spec:

BCP 47 incorporates, but goes beyond, the ISO sets of language and country codes. To find relevant codes you should consult the IANA Language Subtag Registry.

Checking that:
image
So, no country codes anyway.

from homebrewery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.