ve-cite: Handle ref nodes with mw:Error RDFa

Bug: T299378
Bug: T299672
Change-Id: I7bc7dfb4fb9c0c9b140b793e6e0b2d00b7fe67e0
This commit is contained in:
Ed Sanders 2022-01-20 17:35:23 +00:00 committed by Bartosz Dziewoński
parent 76858930e2
commit a2c927f8b8

View file

@ -44,7 +44,8 @@ ve.dm.MWReferenceNode.static.matchTagNames = null;
ve.dm.MWReferenceNode.static.matchRdfaTypes = [ 'mw:Extension/ref' ];
ve.dm.MWReferenceNode.static.allowedRdfaTypes = [ 'dc:references' ];
// Handle nodes with mw:Error as this probably just means the ref list doesn't exist (T299672)
ve.dm.MWReferenceNode.static.allowedRdfaTypes = [ 'dc:references', 'mw:Error' ];
ve.dm.MWReferenceNode.static.isContent = true;