- First commit to issue fork.
- πΊπΈUnited States dcam
+1 for this. I converted the patch in #4 to an MR. There's no need to give me credit for doing that.
My accessibility validator was also complaining about the
<figcaption>
outside of a<figure>
element because it doesn't like invalid HTML. To be honest, this was going to be one of the things that I let go, but then I found this open issue. Applying the changes stopped that error. The patch looks good. The resulting HTML looks good. I don't know that there's much more to say about it. RTBC from me.I'm reclassifying this as a bug report with normal priority since this causes an HTML validation error that may impact things like automatic scanning tools.
- Status changed to RTBC
2 months ago 12:34am 28 April 2025 - πΊπΈUnited States dcam
The comment in the OP about text not being valid content of a
<figure>
is incorrect. Figures can contain any flow content. MDN's own doc page has included an example of a<figure>
that contains a<blockquote>
for a long time. I know because I use that page for reference too.So I removed that part of the issue summary, but I'm leaving the change from text to an image anyway just because I like it and I think that probably is how it's used most of the time.
Anyway, thanks for working on this fix!
Automatically closed - issue fixed for 2 weeks with no activity.