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

Unified Diff: LayoutTests/svg/text/nonconformant-content-crash-3.html

Issue 145493012: <br> nodes should not be allowed within SVG text (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload ps#3. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/text/nonconformant-content-crash-3-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/text/nonconformant-content-crash-3.html
diff --git a/LayoutTests/svg/text/nonconformant-content-crash-3.html b/LayoutTests/svg/text/nonconformant-content-crash-3.html
new file mode 100644
index 0000000000000000000000000000000000000000..6cddcb5dbab3400882e681e2b516bb11fe56ac97
--- /dev/null
+++ b/LayoutTests/svg/text/nonconformant-content-crash-3.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<svg height="300">
+<text y="10">
+ <tspan></tspan>
+ <textPath></textPath>
+ <altGlyph>Bar</altGlyph>
+</text>
+</svg>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+function insertBR(parent) {
+ parent.appendChild(document.createTextNode('foo'));
+ parent.appendChild(document.createElement('br'));
+ parent.appendChild(document.createTextNode('bar'));
+}
+window.onload = function() {
+ var t = document.querySelector('text');
+ for (var child = t.firstChild; child; child = child.nextSibling) {
+ if (child instanceof Text)
+ continue;
+ insertBR(child);
+ }
+ insertBR(t);
+ setTimeout(function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
+};
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/text/nonconformant-content-crash-3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698