mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Ensure document base is always correct, even in source mode
Bug: T153624 Change-Id: I3f74f67ce975f5b371ab42adf5213256ae816f7f
This commit is contained in:
parent
4a1cd55503
commit
46385a557e
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue