polyglot-markup

Polyglot-Markup validator

霸气de小男生 提交于 2020-02-20 05:54:48
问题 Is there a free online polyglot-markup validation service that will correctly identify and validate polyglot-markup? I did find totalvalidator and htmlvalidator but those are (paid) non-web-based solutions. 回答1: Use http://validator.w3.org/nu/ and use “Options” to select first HTML5 (= HTML5 in HTML serialization) parsing mode, then XML parsing mode. 来源: https://stackoverflow.com/questions/16281471/polyglot-markup-validator

There are a subset or constraint of HTML5 that can be perfectly mapped into XHTML5, and vice-versa?

别说谁变了你拦得住时间么 提交于 2019-12-07 11:11:07
问题 I need to represent content in a lingua franca , that is, in nowadays, the HTML5 standard — my objective is not to show a page in the web-browser. I need to represent only content , no interface, no layout, no logic (no Javascript). As remembered in other questions (or programmers questions), and the W3C HTML5's Recommendation, "HTML vs XHTML" section, the DOM, the HTML syntax, and the XHTML syntax cannot all represent the same content. Ok, but ~90% can be the same (!), and, if I not need

How to use Meta Viewport in XML?

纵然是瞬间 提交于 2019-12-05 20:49:26
I am trying to create a responsive design layout using XML that relies on setting the initial-scale of the user agent. In HTML I would use some variation of the <meta viewport> tag such as this: <meta name="viewport" content="width=320, initial-scale=1"> however the lack of a closing tag is a problem for XML. Is there a way for me to do this in valid XML that would also work in browsers? Startec Given this answer (which is specifically about closing the <meta> tag) I think the simplest thing to do here would be to just close the meta element with /> as browsers will not complain. Paul Sweatte

Polyglot-Markup validator

家住魔仙堡 提交于 2019-12-03 17:13:50
Is there a free online polyglot-markup validation service that will correctly identify and validate polyglot-markup? I did find totalvalidator and htmlvalidator but those are (paid) non-web-based solutions. Use http://validator.w3.org/nu/ and use “Options” to select first HTML5 (= HTML5 in HTML serialization) parsing mode, then XML parsing mode. 来源: https://stackoverflow.com/questions/16281471/polyglot-markup-validator