Comments (7)
Good catch, should have thought of adding lang attribute to print too, we'll be right on it.
from homebrewery.
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.
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.
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.
Ah! To clarify my words, perhaps the en-US
should have been changed to en
- looks like you made the change already.
from homebrewery.
Actually no, as defined by W3C, lang codes in html do not include the country.
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.
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:
So, no country codes anyway.
from homebrewery.
Related Issues (20)
- Unclose Code Fence syntax reveals "columnSplit" div, other elements
- Chrome Crash with Inspect Tool HOT 3
- Extra account information HOT 1
- reporting a saving error - 503 HOT 3
- themes option hidden by Properties tab HOT 3
- [FEATURE, LOCAL]: Offline save HOT 6
- Pathfinder 2nd edition (P2E) Theme HOT 3
- [FEATURE, LOCAL]: Import brew from local file HOT 4
- Brew title parsed as markdown on Error pages. e.g. images will be rendered.
- Snippets Track
- [EDITOR] Unsaved Changes on Exit
- Shrinking Image hides artist credit HOT 1
- Issue: Saving Issue HOT 1
- Linking Google Drive Images no longer works HOT 1
- Linking to ID's works only some of the times. HOT 2
- Issue with CSS property in built-in DMG Theme and PHB theme GitHub HOT 1
- Framed monster block background image doesn't appear in the PDF HOT 11
- Vulnerability via js on brew HOT 1
- Add share link to error page 401 or 403 if brew published
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrewery.