Leif Halvard Silli wrote:
This code is from the code example from the HTML5 spec:

<hgroup>
 <h1>The reality dysfunction</h1>
 <p>Space is not the only void</p>
</hgroup>

See: https://html.spec.whatwg.org/multipage/sections.html#the-hgroup-element

The validator in XXE 11 says that <p> is not permitted in that context. And for the record, 
<https://validator.nu> says the same thing. Whereas the Nu validator of W3.org says what 
the spec says, that it is permitted - <https://validator.w3.org/nu/#textarea>

So I suggest that you update the validator in XXE to be in accordance with the 
spec.

For history, the <hgroup> element used to permit one or more h1-h6 elements. Whereas the current spec says
    «Zero or more p elements, followed by one h1, h2, h3, h4, h5, or h6 
element, followed by zero or more p elements»

It seems like engine behind validator.nu is several versions behind the version 
at validator.w3.org/nu – the old engine expect only h1-h6 elemenbts, whereas 
the new engine is in accordance with the spec. And it seems the validator 
inside XXE has the same issue - it accepts only h1-h6 elements.

That's right XXE uses a W3C XML Schema written by us to validate (X)HTML5 documents. We use "HTML Living Standard", https://html.spec.whatwg.org/multipage/, as our sole reference. Our current W3C XML Schema corresponds to what was published there on 2019-07-18 and it is certainly slightly outdated.

We'll update the <hgroup> content model to

---
Zero or more p elements, followed by one h1, h2, h3, h4, h5, or h6 element, followed by zero or more p elements, optionally intermixed with script-supporting elements.
---
https://html.spec.whatwg.org/multipage/sections.html#the-hgroup-element

in XXE version 11.1.

If you find other outdated content models in the next few weeks, please do not hesitate to report them and we will fix those too in version 11.1.

We need to check our W3C XML Schema in its entirety against latest "HTML Living Standard" but as this is a long and tedious task, we cannot do that for version 11.1. We'll probably do that in a subsequent version.



--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to