- From: Mark Rogers <mark.rogers@powermapper.com>
- Date: Thu, 11 Jun 2020 14:19:46 +0000
- To: Catherine Ailanjian <Catherine.Ailanjian@wdc.com>, "www-validator@w3.org" <www-validator@w3.org>
- Message-ID: <7EB0AA5E-A416-4BB8-8437-1214361ECAA0@powermapper.com>
Hi Cat I can’t see the problem happening now, so looks like it’s been fixed. Errors like this in what looks like the head element often means a stray character or an element like <span> or <div> has appeared earlier in the head and triggered the start of the body element. This happens because both head and body start/end tags are optional in HTML5, so non-head text or elements close the head element and start the body element. For example, the stray full stop here ends the head after meta charset and triggers the title error you saw: <head> <meta charset='utf-8'>. <title>Test</title> </head> Best Regards Mark Mark Rogers - mark.rogers@powermapper.com PowerMapper Software Ltd - www.powermapper.com Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL From: Catherine Ailanjian <Catherine.Ailanjian@wdc.com> Date: Wednesday, 10 June 2020 at 21:12 To: "www-validator@w3.org" <www-validator@w3.org> Subject: validator issue for <title> Resent from: "www-validator@w3.org" <www-validator@w3.org> Resent date: Wednesday, 10 June 2020 at 21:11 Hello – I’m running the Nu Html Checker using the bookmarklets for checking serialized DOM and then filtering for WCAG 2.0 on this webpage: http://shop.westerndigital.com. We are receiving the following nesting error: Error: Element title<https://html.spec.whatwg.org/multipage/#the-title-element> not allowed as child of element body<https://html.spec.whatwg.org/multipage/#the-body-element> in this context. (Suppressing further errors from this subtree.) From line 259, column 2; to line 259, column 8<https://validator.w3.org/nu/#l259c8> ink -->↩ <title>Wester Contexts in which element title<https://html.spec.whatwg.org/multipage/#the-title-element> may be used: In a head<https://html.spec.whatwg.org/multipage/#the-head-element> element containing no other title<https://html.spec.whatwg.org/multipage/#the-title-element> elements. Content model for element body<https://html.spec.whatwg.org/multipage/#the-body-element>: Flow content<https://html.spec.whatwg.org/multipage/#flow-content-2>. However, the title element is being used above the body element in the code. Why is error being displayed? Cat Ailanjian Web QA Engineer Marketing Operations Pro Unlimited Contingent Worker, on behalf of Western Digital catherine.ailanjian@wdc.com<mailto:catherine.ailanjian@wdc.com> Office: 949-672-9412
Received on Thursday, 11 June 2020 14:20:00 UTC