Re:WordPress Sites Now Support Google’s AMP to Make Mobile P...
by nissehulth on Wednesday February 24, 2016 @01:22PM
(#11168916)
What "default template" would that be?
As for the "lang" attribute, it is set to the language chosen when WordPress was installed.
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P...
by currysausage on Wednesday February 24, 2016 @02:30PM
(#11169491)
Oops, sorry, I was looking at the HTML of the theme previewer instead of the theme itself. With regard to WordPress, only my "XHTML friends network" point remains valid. Concerning web development in general, I have seen way too much cargo cult boilerplate, too many hardcoded lang attributes, etc.
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P...
by nissehulth on Wednesday February 24, 2016 @05:23PM
(#11170723)
Yeah, the value of "XFN" is debatable. But it's usually written as a link element that doesn't really break anything.
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P...
by josefresco on Wednesday February 24, 2016 @02:07PM
(#11169276)
First 3 lines of Twenty Sixteen are:
<!DOCTYPE html> <html lang="en" class="no-js"> <head>
I checked back to Twenty Fourteen and didn't see the lines you referenced. Regardless, it's a silly argument, the default themes are "reference" themes, meant to show off all the features WordPress offers and of course don't represent all WP themes.
Let's look at the first lines of WordPress's default template:
Why bother with xmlns if it's not well-formed XML anyway?Why dir and lang if you don't really know what language the content is in? We now have the funny situation that most non-English pages wrongly declare lang="en-US" because W3C evangelists told template authors that lang is really important, rendering the attribute completely useless.
What the heck is profile="http://gmpg.org/xfn/11" supposed to do?