mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-11 22:56:01 +00:00
7bee635f21
* DOMUtils was perhaps the biggest kitchen sink utility class we had with different classes of utilities. * The split reflects a clear dependence hierarchy: DOMUtils -> DOMDataUtils -> WTUtils -> ContentUtils This also seems to reflect a bit in the use patterns. Content helpers are not used as much in html2wt. * DOMUtils now only has DOM utilities that are independent of Parsoid and could be useful in another project. * Moved a couple helpers into WTSUtils.js since they are very narrowly scoped to html2wt functionality and are unlikely to be every useful elsewhere. * Moved diffing related utils to html2wt/DiffUtils.js - There is still a dependency in development / debug mode when doms have to be dumped. I couldn't think of an easy way of removing this dependency. - But otherwise, DiffUtils is scoped to html2wt use cases only. * One more circular dependency eliminated. * All tests pass. Bug: T208360 Bug: T205333 Change-Id: I522e8b5c7d726706f994386282476102fe35e91e |
||
---|---|---|
.. | ||
ext/Cite |