HomePhabricator

[BREAKING CHANGE] Allow models to specify which extra RDFa types they support

Authored by Esanders.

Description

[BREAKING CHANGE] Allow models to specify which extra RDFa types they support

Currently the rule is 'any' for regular types, and 'none' for types
which have extension specific types.

Change this be a defined value 'allowedRdfaTypes' which defaults to []
(i.e. none). This can be overriden by users which allow other types
(e.g. mw:Transclusion allows any type, mw:Image allows mw:Error,
mw:Reference allows dc:reference).

Bug: T98999
Change-Id: I1ca64562e9e65d5881dba43a4f2012d51f936784

Details