W3C home > Mailing lists > Public > www-validator@w3.org > December 2017

Re: Error in Online validator http://validator.w3.org/check?uri=...

From: David Dorward <david@dorward.me.uk>
Date: Tue, 26 Dec 2017 13:43:53 +0000
To: "Holger Osterbuhr" <gebcke@gmail.com>
Cc: www-validator@w3.org
Message-ID: <A4869E23-2E12-4985-ABF5-EB4EE46CEF42@dorward.me.uk>
On 23 Dec 2017, at 22:25, Holger Osterbuhr wrote:

> The first <p> is on line 43, the second on line 52, the first </p> on
> line 60, the second on line 76
> ↩
> <p><ul class="tabs" data-tabs id="tabs2009">↩

> This false error is reported:
>
> Error: No p element in scope but a p end tag seen.

The validator is correct.

* The end tag for `<p>` is optional
* `<ul>` is forbidden from appearing inside `<p>`


The `<ul>` therefore implicitly closes the `<p>` and there is no open 
`<p>` when the `</p>` tag is parsed.
Received on Tuesday, 26 December 2017 13:44:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 26 December 2017 13:44:24 UTC