Last modified: 2013-10-02 19:01:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51097, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49097 - Use figure and figcaption HTML5 elements when possible
Use figure and figcaption HTML5 elements when possible
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.22.0
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: html5 23932
  Show dependency treegraph
 
Reported: 2013-06-04 03:17 UTC by Matthew Flaschen
Modified: 2013-10-02 19:01 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2013-06-04 03:17:13 UTC
Since MediaWiki allows images that are clearly separated, out, we should see if we can use figure and figcaption.  These tags are intended for "some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document."

This would particularly make sense for thumb and frame where a caption is already shown.  However, figure can also be used without figcaption, which should simplify implementation.

The main concern is backwards-compatibility with browsers that don't know about these tags.  They're new to HTML5 (which is now always on), but I think jQuery's createSafeFragment takes care of making them available to older versions of IE.  So it's only an issue for old IE without JS (per bug 23932).
Comment 1 Brion Vibber 2013-10-02 19:01:49 UTC
Docs on MDN for these elements:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption

Core and mobile styles would have to be updated, and likely also some JS tools.

Alternatively, <figure> and <figcaption> could be thrown in around the existing <div>s and <span>s without changing the styles, assuming there's no default styles that override stuff.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links