mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
46f749b92f
The `typeof` attribute is a space-separated list. Use consistent methods to test for membership in that list. Try to set a good example by using ::addTypeOf() in general to set the value of the 'typeof' attribute, except when we are transferring values from one node to another. Move the *TypeOf method to DOMUtils from DOMDataUtils, eliminating some duplication. Create Wikimedia\Parsoid\Ext\DOMUtils so that extensions can use these methods as well. Change-Id: Ib2ef827ef1cf5e31a1ef0a5034cdd3d9a0212bdb |
||
---|---|---|
lib/ext/Cite | ||
src/Parsoid |