-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print view doesn't include the Language Attribute #3294
Comments
Good catch, should have thought of adding lang attribute to print too, we'll be right on it. |
That Pull Request adds in the fix by setting the lang attribute on the |
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 |
Actually no, as defined by W3C, lang codes in html do not include the country. |
Ah! To clarify my words, perhaps the |
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 |
According to that spec:
|
Renderer
v3
Browser
Firefox
Operating System
Linux
What happened?
When opening up one of my brews in Print view (link here), I noticed that the
hyphens: auto
CSS that I had set up was not being made use of. As a result, none of the hyphenations appeared where they were supposed to, causing some text overflow.Taking a quick look via the element inspector, it turned out that this was due to the Print view lacking the
lang="en"
attribute (as opposed to the regular view, where things worked as expected as can be seen here).Introducing this attribute to the Print view's
<div class="pages"></div>
element (the same as the regular view) should fix that up - manually doing so in the element inspector got the hyphenation working as expected.The text was updated successfully, but these errors were encountered: