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

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

Issue 139313009: Remove children of title element before setting new title (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script type="text/javascript">
4 description("Test that setting document.title does not reuse &lt;title&gt;'s tex tnode child");
5
6 onload = function()
7 {
8 document.title = "aaa";
9 oldnode = document.getElementsByTagName("title")[0].firstChild;
10 document.title = "bbb";
11 shouldBeTrue('oldnode.textContent != "bbb"');
12 shouldBeTrue('oldnode != document.getElementsByTagName("title")[0].firstChil d');
13 }
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698