Browse Source

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

add type to webview style tag
Cheng Zhao 8 years ago
parent
commit
9850af93c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/renderer/web-view/web-view.js

+ 1 - 1
lib/renderer/web-view/web-view.js

@@ -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()