valid code marked as invalid

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