Last modified: 2011-09-03 04:02:37 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 T32719, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30719 - Add array support for space-separated list attributes in the Html class
Add array support for space-separated list attributes in the Html class
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-03 03:59 UTC by Krinkle
Modified: 2011-09-03 04:02 UTC (History)
2 users (show)

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


Attachments

Description Krinkle 2011-09-03 03:59:17 UTC
Ever since the introduction of the Html class in August 2009, there has been the suggestion to use arrays for attributes like 'class' [1].

How about adding that in ? I don't mean just a simple " if ( $key ) { $value = implode( ' ', $value ); }", but something more sophisticated.

* Recognize them as real lists, so do normalization (removal of duplicates and redundant whitespace)
* Also for space-separated value attributes other than 'class' (see specification)


--
Krinkle

[1] http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Html.php?view=markup&pathrev=54767#l59
Comment 1 Krinkle 2011-09-03 04:02:37 UTC
r96170, r96171

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


Navigation
Links