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

Unified Diff: LayoutTests/fast/dom/dom-parse-serialize.html

Issue 117103003: DOM serialization: fix quoting of < and > in HMTL attribute values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: < and > are un-quoted in HTML, quoted in XML. Created 6 years, 12 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
Index: LayoutTests/fast/dom/dom-parse-serialize.html
diff --git a/LayoutTests/fast/dom/dom-parse-serialize.html b/LayoutTests/fast/dom/dom-parse-serialize.html
index 3d04523e0fa99efc9955acb3425c8b190190f558..a076483f6ef18737391f8120cc85c97c6b071593 100644
--- a/LayoutTests/fast/dom/dom-parse-serialize.html
+++ b/LayoutTests/fast/dom/dom-parse-serialize.html
@@ -1,22 +1,22 @@
-<!--
+<!--
- The contents of this file are subject to the Mozilla Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/MPL/
- -
+ -
- Software distributed under the License is distributed on an "AS
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- implied. See the License for the specific language governing
- rights and limitations under the License.
- -
+ -
- The Original Code is Mozilla Test Cases.
- -
+ -
- The Initial Developer of the Original Code is Netscape Communications
- - Corp. Portions created by Netscape Communications Corp. are
+ - Corp. Portions created by Netscape Communications Corp. are
- Copyright (C) 2001 Netscape Communications Corp. All
- Rights Reserved.
- -
- - Contributor(s):
+ -
+ - Contributor(s):
-->
<html>
<head>
@@ -39,10 +39,10 @@ if (window.testRunner)
function execute()
{
var parser = new DOMParser();
- var str =
- '<?xml version="1.0"?>\n<!DOCTYPE doc [\n<!ATTLIST d id ID #IMPLIED>\n]>\n<doc>\n <foo xmlns="foobar">One</foo> <x:bar xmlns:x="barfoo">Two</x:bar>\n <d id="id3">Three</d>\n<f id="&amp;&lt;&gt;">Four&amp;&lt;&gt;</f><empty/><empty></empty></doc>\n';
+ var str =
+ '<?xml version="1.0"?>\n<!DOCTYPE doc [\n<!ATTLIST d id ID #IMPLIED>\n]>\n<doc>\n <foo xmlns="foobar">One</foo> <x:bar xmlns:x="barfoo">Two</x:bar>\n <d id="id3">Three</d>\n<f id="&amp;&lt;&gt;>">Four&amp;&lt;&gt;</f><empty/><empty></empty></doc>\n';
var doc = parser.parseFromString(str,"text/xml");
-
+
document.getElementById("id1").firstChild.nodeValue = str;
document.getElementById("id2").firstChild.nodeValue = doc;
var ser = new XMLSerializer();

Powered by Google App Engine
This is Rietveld 408576698