Last modified: 2014-10-03 11:30:11 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 T73605, the corresponding Phabricator task for complete and up-to-date bug report information.
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