Ensure document base is always correct, even in source mode

Bug: T153624
Change-Id: I3f74f67ce975f5b371ab42adf5213256ae816f7f
This commit is contained in:
Ed Sanders 2016-12-19 21:08:58 +00:00
parent 4a1cd55503
commit 46385a557e

View file

@ -164,10 +164,10 @@ ve.init.mw.Target.prototype.parseDocument = function ( documentString, mode ) {
} else {
// Parsoid documents are XHTML so we can use parseXhtml which fixed some IE issues.
doc = ve.parseXhtml( documentString );
// Fix relative or missing base URL if needed
this.constructor.static.fixBase( doc );
}
// Fix relative or missing base URL if needed
this.constructor.static.fixBase( doc );
return doc;
};