It is currently Sat Dec 02, 2017 4:03 pm Advanced search
"In the generic facet, the parser will be chosen based on the HTTP Content-Type and a preset schema will be chosen based on the root namespace (for XML) or the doctype (for text/html)."JAB Creations wrote:I used http://validator.nu/ to validate the latest iteration of my work which it decided to validate as XHTML5 when it's XHTML 1.1.
It's not restricted to the head element. It's allowed here:JAB Creations wrote:I received a couple errors though the noscript error was actually quite shocking. There is absolutely no point in restricting the noscript element to being a child of the head element, to what?
Why?JAB Creations wrote:If anything the script element should be restricted to the head element.
The point is that it works in HTML but not in XHTML.JAB Creations wrote:What's the point of having the noscript element in HTML5 but not XHTML5?
Sure you can, you just can't use the noscript element to do it. The spec has an example with a better way to do it.JAB Creations wrote:So HTML documents can launch a noscript element layer to tell users to enable JavaScript though if you're using the better XML format you can't?
You can link in a style sheet or do a meta redirect.JAB Creations wrote:I mean what in the world are you going to do with a noscript element inside of the head element?
What decision?JAB Creations wrote:Who has been responsible for making these kind of decisions?
JAB Creations wrote:Why the need to do two different things in the standard between the two parent technologies?
Nothing is difficult with showing. The 'difficult' part is parsing. In HTML, noscript is parsed differently depending on whether scripting is enabled or not. In XML, you can't really change the parser and still claim to use XML.JAB Creations wrote:Scripting enabled, don't show it.
Scripting disabled, show it.
What's so difficult about that?
I think the head element thing has got you confused. There's no moving it to the head element.JAB Creations wrote:I still see absolutely no valid argument for moving the noscript element explicitly to the head element.
JAB Creations wrote:The noscript element has worked perfectly fine on my site for years. I don't see the issue with parsing...
<noscript><style> html { background:red } </style></noscript>
JAB Creations wrote:Then just have the browser hide the noscript element from the XML parser when scripting is enabled.
Return to Feedback on the Specs
Users browsing this forum: No registered users and 1 guest