Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error "Failed to fetch a source document" with web publications o…
…n Microsoft Edge The problem was: The document URLs from TOC items are obtained by `anchorElem.href` property. This href value is absolute URL that is generated from the "href" attribute value and the base URL. On Chrome, Safari, and Firefox, this base URL is the URL of the document containing the TOC, and works as expected. However, on Microsoft Edge, the vivliostyle-viewer URL is used as the base URL and the `anchorElem.href` value becomes wrong URL, and causes "Failed to fetch a source document" error.
- Loading branch information