SimonbJohnson / quickX3

HXLDash. Create data visualisations quickly by leveraging the humanitarian exchange language
https://hxldash.com/
MIT License
8 stars 4 forks source link

[encoding] Move <meta charset="UTF-8"> to be the first subelement of <head> to help with some specific encoding errors #75

Closed fititnt closed 4 years ago

fititnt commented 4 years ago

Refs:


On some cases (this may affect at least crawlers that may default to a non-UTF-8 encoding until find the charset tag, but at this point they may get wrong the encoding) by not having the <code><meta charset="UTF-8"></code> as one of the first elements of the <head> this may lead to some bugs. I'm not fully 100% sure if this affects screen readers.</p> <p>So the end code that today is this</p> <pre><code class="language-html"><!DOCTYPE HTML> <html> <head> <title>HXL Dash</title> <meta charset="UTF-8"> (...)</code></pre> <p>Could be this</p> <pre><code class="language-html"><!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>HXL Dash</title> (...)</code></pre> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/SimonbJohnson"><img src="https://avatars.githubusercontent.com/u/2110742?v=4" />SimonbJohnson</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>Fixed <a href="https://github.com/SimonbJohnson/quickX3/pull/77">https://github.com/SimonbJohnson/quickX3/pull/77</a></p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>