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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/set-title-element-on-inner-svg-document.html

Issue 1774913003: (Re-commit) Fix SVGDocument return title that is not a child of the root element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 test(function() {
6 var doc = document.implementation.createDocument("http://www.w3.org/2000/svg", "SVG", null);
7 var body = doc.createElementNS("http://www.w3.org/1999/xhtml", "body");
8 doc.documentElement.appendChild(body);
9 var svg = doc.createElementNS("http://www.w3.org/2000/svg", "svg");
10 body.appendChild(svg);
11 var g = doc.createElementNS("http://www.w3.org/2000/svg", "g");
12 svg.appendChild(g);
13 var title1 = doc.createElementNS("http://www.w3.org/1999/xhtml", "title");
14 title1.textContent = "title1";
15 g.appendChild(title1);
16 assert_equals(doc.title,'title1');
17 var title2 = doc.createElementNS("http://www.w3.org/1999/xhtml", "title");
18 title2.textContent = "title2";
19 svg.appendChild(title2);
20 assert_equals(doc.title,'title1');
21 }, "Test for setting title element of inner svg document.");
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698