Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script.html

Issue 1945563002: Set currentScript for SVGScriptElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary include Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script.html b/third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script.html
index e67deecb7ad05f37495f1f66912de960c724a40a..4180dc79dddf4b43b94520b0b8f4b6c36a028023 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script.html
@@ -62,6 +62,17 @@ document.head.appendChild(script);
logCurrentScript();
</script>
+<script id="svg_in_html">
+logCurrentScript();
+
+var svg = document.createElementNS("htttp://www.w3.org/2000/svg", "svg");
+var script = document.createElementNS("http://www.w3.org/2000/svg", "script");
+script.id = "svg script";
+script.textContent = 'logCurrentScript();';
+svg.appendChild(script);
+document.head.appendChild(script);
+</script>
+
<script>
window.onload = function() {
shouldBeNull('document.currentScript');

Powered by Google App Engine
This is Rietveld 408576698