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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/style-tag-in-responseXML.html

Issue 2885633002: Style tag in an XHR's responseXML shouldn't make the responseXML be null. (Closed)
Patch Set: Move setting Document::well_formed_ Created 3 years, 7 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 <html>
2 <body>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 var style_in_responseXML = async_test("Check that a style in an XHR's responseXM L doesn't prevent accessing the responseXML");
7
8 var request = new XMLHttpRequest();
9 request.responseType = "document";
10 request.open("GET", "resources/xml-with-style-tag.xml", true);
11 request.onreadystatechange = style_in_responseXML.step_func(function() {
12 if (request.readyState === 4) {
13 assert_not_equals(null, request.response);
14 assert_not_equals(null, request.responseXML);
15 style_in_responseXML.done();
16 }
17 });
18 request.send();
19 </script>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698