|
|
@@ -127,6 +127,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
constructor(options) {
|
|
|
this.options = options;
|
|
|
this.options.url = this.options.url || this.options.doc.location.href;
|
|
|
+ this.options.baseURI = this.options.doc && this.options.doc.baseURI;
|
|
|
this.batchRequest = new BatchRequest();
|
|
|
this.processor = new DOMProcessor(options, this.batchRequest);
|
|
|
if (this.options.doc) {
|
|
|
@@ -255,7 +256,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
constructor(options, batchRequest) {
|
|
|
this.options = options;
|
|
|
this.stats = new Stats(options);
|
|
|
- this.baseURI = DomUtil.normalizeURL(options.url);
|
|
|
+ this.baseURI = DomUtil.normalizeURL(options.baseURI || options.url);
|
|
|
this.batchRequest = batchRequest;
|
|
|
}
|
|
|
|