[英]meta http-equiv outside of head?
I've been always accustomed to see meta tags inside of head. 我一直习惯于在脑海中看到meta标签。 The new Opera 12.12 takes this meta out of head while saving a page: 新的Opera 12.12在保存页面的同时消除了这个元数据:
<!DOCTYPE html>
<html dir="ltr" lang="pl-PL">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<head>
is this an affordable thing or a bug in Opera? 这是负担得起的事情还是Opera中的错误?
Update for Jukka K. Korpela Jukka K.Korpela的更新
The page has following URL: http://www.espeo.pl/2012/02/26/authentication-in-angularjs-application and I save it as "HTML file with images". 该页面具有以下URL: http : //www.espeo.pl/2012/02/26/authentication-in-angularjs-application ,我将其另存为“带有图像的HTML文件”。
This link should help you find the answer: 该链接应帮助您找到答案:
http://www.w3.org/TR/html401/struct/global.html#h-7.4.4.1 http://www.w3.org/TR/html401/struct/global.html#h-7.4.4.1
also according to w3schools(which cant be taken as a genuine spec): " Note: <meta>
tags always goes inside the <head>
element. " 同样根据w3schools(不能视为真正的规格):“ 注意: <meta>
标签始终位于<head>
元素内。 ”
It isn't valid HTML. 这不是有效的HTML。 Meta elements may only be children of the head element. 元元素只能是head元素的子元素。
It is probably a bug, but might be a deliberate violation of the HTML spec on Opera's part to ensure that the character encoding information is parsed before any attributes on the <head>
element (in case they contain characters that aren't in the default encoding). 这可能是一个错误,但可能故意违反了Opera的HTML规范,以确保在<head>
元素上的任何属性之前解析字符编码信息(以防它们包含默认字符之外的字符)编码)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.