Merge pull request #7313 from electron/add-type-to-webview-style-tag

add type to webview style tag
This commit is contained in:
Cheng Zhao
2016-09-27 19:03:08 +08:00
committed by GitHub

View File

@@ -31,7 +31,7 @@ var WebViewImpl = (function () {
this.on = {}
this.browserPluginNode = this.createBrowserPluginNode()
shadowRoot = this.webviewNode.createShadowRoot()
shadowRoot.innerHTML = '<style>:host { display: flex; }</style>'
shadowRoot.innerHTML = '<!DOCTYPE html><style type="text/css">:host { display: flex; }</style>'
this.setupWebViewAttributes()
this.setupFocusPropagation()
this.viewInstanceId = getNextId()