Description:
I've noticed that the validator currently treats this as an error. But it seems to be a false positive. According to the HTML specification, the <summary> element's content model allows phrasing and heading content to be intermixed.
Would it be possible to adjust the validator to stop identifying this as an error?
Thanks :)!
Code to reproduce error:
<!DOCTYPE html>
<html lang="">
<head>
<title>Test</title>
</head>
<body>
<details>
<summary>Phrasing content <h2>Heading content</h2></summary>
</details>
</body>
</html>
Error:
Error: Element h2 not allowed as child of element summary in this context. (Suppressing further errors from this subtree.)
From line 8, column 27; to line 8, column 30
g content <h2>Headin
Content model for element summary:
Phrasing content, optionally intermixed with heading content.