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

Unified Diff: LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml

Issue 739433003: Remove CDATASection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 10 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/SelectorAPI/resig-SelectorsAPI-test.xhtml
diff --git a/LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml b/LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml
index 8dca872a0d4eb20a3b5238c7b8f2121f02b435f8..09b9eae3ae3a8041542c461ebe27fdaae59dace6 100644
--- a/LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml
+++ b/LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml
@@ -245,14 +245,14 @@
var cache = {};
var cssElem = document.getElementById("test");
- var css = (cssElem.innerHTML || cssElem.textContent || cssElem.innerText).split("\n");
+ var css = cssElem.textContent.split("\n");
for ( var i = 0; i < css.length; i++ ) {
css[i] = css[i].replace(/\/\*.*?\*\//g, "")
.replace(/^\s*|\s*$/g, "").split(/\s*{/);
}
var ecssElem = document.getElementById("error");
- var ecss = (ecssElem.innerHTML || ecssElem.textContent || ecssElem.innerText).split("\n");
+ var ecss = ecssElem.textContent.split("\n");
for ( var i = 0; i < ecss.length; i++ ) {
ecss[i] = ecss[i].replace(/\/\*.*?\*\//g, "")
.replace(/^\s*|\s*$/g, "").split(/\s*{/);
« no previous file with comments | « LayoutTests/fast/dom/Node/script-tests/normalize-with-cdata.js ('k') | LayoutTests/fast/xpath/string-value.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698