mediawiki-extensions-Visual.../modules/ve/dm
Catrope d73d6e9bf0 Add extension-specific types functionality to ModelRegistry
Extension-specific types are RDFa types (or type regexes) that are
registered with the ModelRegistry separately. If an element has a type
that is extension-specific, then that element can only be matched by a
rule that asserts one of its extension-specific types.

For MediaWiki, we would call
ve.dm.modelRegistry.registerExtensionSpecificType(/^mw:/ ) .
So then an element like <span typeof="mw:foobar"> would either match a
rule specifically for mw:foobar, if one exists, or no rule at all; even
the rule for <span> would not match. The consequence of this is that
elements with unrecognized mw:-prefixed RDFa types are alienated.

Change-Id: Ia8ab1fe5dffb9f813689324372a168e8e4a3e0bc
2013-01-22 18:12:35 -08:00
..
annotations Drop name parameter from ModelRegistry.register(), use .static.name 2013-01-22 15:55:11 -08:00
nodes Drop name parameter from ModelRegistry.register(), use .static.name 2013-01-22 15:55:11 -08:00
ve.dm.Annotation.js Move matching code from AnnotationFactory to ModelRegistry 2013-01-22 15:51:37 -08:00
ve.dm.AnnotationFactory.js Move matching code from AnnotationFactory to ModelRegistry 2013-01-22 15:51:37 -08:00
ve.dm.BranchNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Converter.js Allow matchTagNames = null in ve.dm.Converter 2013-01-22 17:45:43 -08:00
ve.dm.Document.js Fixed documentation errors 2013-01-22 23:38:01 +00:00
ve.dm.DocumentSlice.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.DocumentSynchronizer.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.js Move matching code from AnnotationFactory to ModelRegistry 2013-01-22 15:51:37 -08:00
ve.dm.LeafNode.js Convert node rules to static properties 2013-01-18 14:51:40 -08:00
ve.dm.ModelRegistry.js Add extension-specific types functionality to ModelRegistry 2013-01-22 18:12:35 -08:00
ve.dm.Node.js Make defaultAttributes a static property as well 2013-01-18 14:51:40 -08:00
ve.dm.NodeFactory.js Make defaultAttributes a static property as well 2013-01-18 14:51:40 -08:00
ve.dm.Surface.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.dm.SurfaceFragment.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Transaction.js Inline ve.dm.Document.offsetContainsAnnotation 2013-01-17 12:07:14 -08:00
ve.dm.TransactionProcessor.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00