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

Side by Side Diff: LayoutTests/fast/dom/document-set-title-no-head.html

Issue 98373012: Don't set document.title when there is no <head> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head></head>
3 <body>
4 <script src="../../resources/js-test.js"></script>
5 <script type="text/javascript">
6 description("Test that setting document.title when there is no &lt;head&gt; or & lt;title&gt; does nothing");
7 onload = function()
8 {
9 var head = document.head;
10 while (head.firstChild)
11 document.documentElement.appendChild(head.firstChild);
12 document.documentElement.removeChild(head);
13 document.title = "New title";
14 shouldBeEmptyString('document.title');
15 }
16 </script>
17 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-set-title-no-head-expected.txt » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698