revert 3cf32048: Chrome 49+ XML viewer works with styles under <html>

This commit is contained in:
tophf 2017-11-13 20:09:19 +03:00
parent 684f445957
commit 8efe4b806b

View File

@ -189,14 +189,6 @@ function applyStyles(styles) {
doExposeIframes(styles.exposeIframes); doExposeIframes(styles.exposeIframes);
delete styles.exposeIframes; delete styles.exposeIframes;
} }
if (document.head
&& document.head.firstChild
&& document.head.firstChild.id === 'xml-viewer-style') {
// when site response is application/xml Chrome displays our style elements
// under document.documentElement as plain text so we need to move them into HEAD
// which is already autogenerated at this moment
ROOT = document.head;
}
if (styles.needTransitionPatch) { if (styles.needTransitionPatch) {
// CSS transition bug workaround: since we insert styles asynchronously, // CSS transition bug workaround: since we insert styles asynchronously,
// the browsers, especially Firefox, may apply all transitions on page load // the browsers, especially Firefox, may apply all transitions on page load