Comments (5)
Can you supply an example document where a particular browser does not render the page correctly without the full/traditional mime-type meta tag? (either over HTTP or by loading a file)
from boilerplate-archived.
Good points Matt, but there are so many other things that are more important. Handbook says "HTML pages should begin with by setting utf-8 in the content-type meta tag." Either the long form or short form accomplish that. Boilerplate and the example on Handbook use the short form.
from boilerplate-archived.
@jeffturcotte, Nope, to my knowledge all browsers (at least the ones we care about) "parse" the first 512 bytes and look for something like a meta tag with the string charset="utf-8"
(and other permuations of it). Paul Irish mentioned this in a talk on HTML5 boilerplate, although I don't remember the details, I'm pretty sure you could do something like <meta who cares what thisdsfoihr2 w8eyf8nf923ht98tr information-0ischarset=utf-8youknow>
and it would work. If not that exactly, then certainly something not far off.
This, of course, would not validate, but the principle in which it was pulled into the spec was not based on whether it was valid, as clearly the charset attribute for it was not prior to.
@davetufts, there are always things more important in one fashion or another, but I think it's an issue we can address. I would be in favor of defining it more strictly in handbook if one is contingent on the other.
Perhaps I'm overlooking something, but I actually can't find in handbook, for example, where it says we should use self closing tags on elements which do not have a closing tag. Or that we should use closing tags at all. Maybe I'm completely off base, was an actual decision made that whatever is valid is OK to use? I don't recall this always being the case -- perhaps it was defacto the case simply because we used XHTML and that enforced such rules, and by switching to HTML5 we are throwing those good practices out?
from boilerplate-archived.
I agree with Dave – there are more important things to worry about. We are staying consistent with bigger, more popular boilerplates like h5bp and Twitter Bootstrap. There's no rule that forces the use of the long or short form, so feel free to use either, but we might as well leave the short form in Boilerplate.
from boilerplate-archived.
I want to state for the record that @mattsah is correct: the long form is the "right" way and the HTML5 standard got it wrong. Still, as long as boilerplate uses the HTML5 doctype, we will use its bastardized charset meta tag.
from boilerplate-archived.
Related Issues (20)
- webpack.mix.js errors
- Tabs should have better mobile experience HOT 2
- Add a default list view to Components HOT 1
- Mobile Menu overflow-y
- mobile nav overlay scroll issue HOT 2
- Javascript file structure
- stickyElement.js clean up HOT 2
- Update Headers
- Default position of header.primary should be relative.
- Leftover styling and component placement HOT 2
- accordion should be structured differently HOT 2
- Tabs mixin is missing documentation HOT 2
- Mobile Navigation mixin is missing documentation HOT 3
- Pagination mixin is missing documentation
- Sticky element plugin - another option to unstick HOT 1
- stickyelement per breakpoint
- Search Drawer doesn't work properly with stickyHeader HOT 2
- mobile navigation tabindex="-1"
- sticky element
- Register Boilerplate as an NPM package HOT 2
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 boilerplate-archived.