Magnific Popup close button placed in invalid html? -
using magnific popup, when gallery
displays, i'm seeing generated code nests <button>
close gallery within <img>
that's being displayed, so: <img><button></img>
. according mdn's img tag details, permitted content isn't allowed, it's empty element. result, close button isn't displaying in gallery. there way fix this?
in gallery initialization object, you're passing along array of markup snippets. markup <img>
tag, fixed wrapping <img>
in <div>
.
Comments
Post a Comment