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

valid code marked as invalid

From: Michael Stalcup <string.stalcup@gmail.com>
Date: Thu, 30 Mar 2017 18:55:27 -0500
Message-Id: <2E13EE76-385D-4C73-8E09-3ECEFF187EC1@gmail.com>
To: www-validator@w3.org
I’m getting an error message that says:
Error: Element div not allowed as child of element figure in this context

This is from the document at http://www.stringweb.com/marcicd/audio_video.php
This is the code that generates the error:

<figure>
  <header>
    <h2>Scenes from the Musicals <i>RESPECT</i> and <i>Sistas</i></h2>
  </header>
  <figcaption>
    <p>Scenes from the Minneapolis production of <i>RESPECT</i>, performed by the cast!</p>
  </figcaption>
  <div class="video-wrap">
    <iframe src="https://www.youtube.com/embed/8zNg_LVUiU0?rel=0" allowfullscreen></iframe>
  </div>
</figure>

From what I’ve read, all flow content is allowed inside the figure element, which would include a div element.


Thanks for checking into this,

Michael Stalcup
Received on Friday, 31 March 2017 16:20:01 UTC

This archive was generated by hypermail 2.3.1 : Friday, 31 March 2017 16:20:09 UTC