Re: Header outline not displaying as expected

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.com>
> 
> [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.

  —Mike

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

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