Last modified: 2014-10-03 11:30:11 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 71605 - Create a generic container object that stores HTML and ResourceLoader modules
Create a generic container object that stores HTML and ResourceLoader modules
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks: code_quality
  Show dependency treegraph
 
Reported: 2014-10-03 10:20 UTC by Kunal Mehta (Legoktm)
Modified: 2014-10-03 11:30 UTC (History)
1 user (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2014-10-03 10:20:49 UTC
In TablePager::getBodyOutput(), a ParserOutput object is currently used because it is a container for HTML and ResourceLoader modules. But it also has a bunch of other methods which aren't appropriate to use here.

So I think we need a generic container object that has getters and setters for:
* HTML text
* addModuleStyles (CSS-only modules)
* addModuleScripts (JS-only modules)
* addModules (combined)
* addModuleMessages

This should be easy to do, except I can't come up with a name for it.

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


Navigation
Links