简体   繁体   English

HTML5-验证

[英]HTML5 - validation

Good morning. 早上好。

I just got a free template from my friend, and everything worked fine except all .html files. 我刚刚从朋友那里得到了一个免费的模板,除所有.html文件外,其他所有东西都工作正常。 Every html file has at least one issue, it's like if eclipse wouldnt recognize the HTML5 validation. 每个html文件至少都有一个问题,就像eclipse无法识别HTML5验证一样。

See an example: 看一个例子:

<!DOCTYPE html>
<head>....</head>
<iframe src="http://player.vimeo.com/video/27973852?title=0&amp;byline=0&amp;portrait=0&amp;api=1&amp;player_id=iframe334" height="240" allowfullscreen="true"></iframe>

Error: Undefined attribute name (allowfullscreen). 错误:未定义的属性名称(允许全屏)。

Also, when I try to access one of my .html page, I get this error from Tomcat: 另外,当我尝试访问我的.html页面之一时,我从Tomcat收到此错误:

WARNING: JSF1091: No mime type could be found for file /about-me.jsp. 警告:JSF1091:找不到文件/about-me.jsp的mime类型。 PTo resolve this, add a mime-type mapping to the applications web.xml. P要解决此问题,请将mime类型的映射添加到应用程序web.xml。 Abr 26, 2014 12:29:24 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource 2014年4月26日12:29:24 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource

Ps: all the css3 files are working fine. ps:所有的css3文件都可以正常工作。

The validator isn't up to date, then. 验证器不是最新的。

https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-allowfullscreen https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-allowfullscreen

However it should be just allowfullscreen , not allowfullscreen="true" . 但是,它应该只是allowfullscreen ,而不是allowfullscreen="true"

https://validator.nu/ supports the allowfullscreen attribute. https://validator.nu/支持allowfullscreen属性。

Without the attribute, native fullscreen with requestFullscreen() will not work. 如果没有该属性,则带有requestFullscreen()本机全屏将不起作用。 Fullscreen from Flash or so might still work. 从Flash进行全屏显示可能仍然有效。 I don't know what vimeo does but possibly it uses <video> + requestFullscreen() for some users or will do so in the future. 我不知道vimeo是做什么的,但可能它会为某些用户使用<video> + requestFullscreen() ,或者将来会使用。

https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM