Chromium Code Reviews

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

Issue 109823011: Revert "Don't set document.title when there is no <head>" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-set-title-no-head-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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') | no next file with comments »

Powered by Google App Engine