Last modified: 2014-11-02 10:33:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 41917 - Table summary should render HTML5
Table summary should render HTML5
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.21.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: newparser
Depends on:
Blocks: html
  Show dependency treegraph
 
Reported: 2012-11-09 12:22 UTC by Gadget850
Modified: 2014-11-02 10:33 UTC (History)
3 users (show)

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


Attachments

Description Gadget850 2012-11-09 12:22:31 UTC
Current table syntax allows the generation of a summary:

{| summary="This is a summary"

Which renders:

<table summary="This is a summary">

This is no longer valid in HTML5.

Propose that this should render within the caption using HTML5 tags:

 <caption>
  <details>
   <summary>This is a summary</summary>
  </details>
 </caption>
Comment 1 Helder 2013-10-06 16:27:02 UTC
Given that $wgCleanupPresentationalAttributes was removed from MW (bug 40632), do we still want this kind of transformation being made by its parser?
Comment 2 Gadget850 2013-10-06 17:10:04 UTC
This isn't like <tt>, which is whitelisted HTML markup but obsolete. This is wikimarkup which is now rendering obsolete HTML. The current code just needs to be updated.
Comment 3 Gadget850 2013-10-06 17:11:39 UTC
This isn't like <tt>, which is whitelisted HTML markup but obsolete. This is wikimarkup which is now rendering obsolete HTML. The current code just needs to be updated.

If I see <tt> in content, I can easily fix it. There is no way an editor can fit table summary.
Comment 4 Bartosz Dziewoński 2013-10-06 17:15:31 UTC
Wikitext tables support captions.

{|
|+ Caption
! Heading A
! Heading B
|-
| …
|}
Comment 5 Gadget850 2013-10-07 12:39:59 UTC
(In reply to comment #4)
> Wikitext tables support captions.
> 
> {|
> |+ Caption
> ! Heading A
> ! Heading B
> |-
> | …
> |}

Yes, they do. But this relates to the table summary, not the caption. HTML5 uses different markup for summary.

And yes, summary is used on the English Wikipedia.
Comment 6 Gadget850 2014-11-02 02:27:11 UTC
Looks like summary is now obsolete, so this is moot.
http://www.w3.org/TR/html-markup/table.html

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


Navigation
Links