W3C home > Mailing lists > Public > www-validator@w3.org > September 2016

Re: Header outline not displaying as expected

From: Michael[tm] Smith <mike@w3.org>
Date: Wed, 28 Sep 2016 01:24:47 +0900
To: Carl Gross <cagross@everlookgroup.com>
Cc: "www-validator@w3.org" <www-validator@w3.org>, Steve Faulkner <faulkner.steve@gmail.com>
Message-ID: <20160927162447.ip7aegzv54hxjvnv@sideshowbarker.net>
Steve Faulkner <faulkner.steve@gmail.com>, 2016-09-27 16:29 +0100:
> Archived-At: <http://www.w3.org/mid/CA+ri+Vk4u-sN7yyjtdRbWUCH5VWT7BSk_6pu1K3vaRyQxb=C1g@mail.gmail>
> [about https://www.horizonhomes-samui.com/about-us/]
> Hi Carl, there is something in the HTML that is causing the validator to
> choke,

Yeah, I think that’s the <noscript><iframe>... in the head.

If that <iframe> is removed the checker should continue without bailing.

<iframe> isn’t allowed in the head, and if the HTML source has it there, it
causes the HTML parser to inject a <body> start tag in the DOM (and so to
treat all following elements as descendants of the body), so when it then
sees the existing <body> start tag in the original source, it flags it as
an error because a (injected) <body> tag is already in the DOM, and bails.


Michael[tm] Smith https://people.w3.org/mike

Received on Tuesday, 27 September 2016 16:25:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:57 UTC