why do you need to change the doctype?
Good question. Currently I’m not facing situation that I need to change doctype but maybe when I decided to use XHTML/CSS2 type of environment. I just thinking it’s good have options as long as it’s commonly used.
In case you are wondering, here is the code you need in your ./server/main.js file to modify the html tag in meteor and add the lang attribute
import { Meteor } from "meteor/meteor";
import { Inject } from "meteor/meteorhacks:inject-initial";
Meteor.startup(() => {
// code to run on server at startup
Inject.rawModHtml("addLanguage", function(html) {
return html.replace(/<html>/, '<!-- HTML 5 -->\n<html lang="en">');
});
}