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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02.js

Issue 1180793002: Document attribute charset and its aliases to return UTF-8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed defaultCharset changes Created 5 years, 6 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
1 /* 1 /*
2 Copyright © 2001-2004 World Wide Web Consortium, 2 Copyright © 2001-2004 World Wide Web Consortium,
3 (Massachusetts Institute of Technology, European Research Consortium 3 (Massachusetts Institute of Technology, European Research Consortium
4 for Informatics and Mathematics, Keio University). All 4 for Informatics and Mathematics, Keio University). All
5 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the 5 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the
6 hope that it will be useful, but WITHOUT ANY WARRANTY; without even 6 hope that it will be useful, but WITHOUT ANY WARRANTY; without even
7 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 7 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8 8
9 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 9 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
10 */ 10 */
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 domImpl = doc.implementation; 97 domImpl = doc.implementation;
98 docElem = doc.documentElement; 98 docElem = doc.documentElement;
99 99
100 rootNS = docElem.namespaceURI; 100 rootNS = docElem.namespaceURI;
101 101
102 rootName = docElem.tagName; 102 rootName = docElem.tagName;
103 103
104 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); 104 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
105 encodingName = newDoc.inputEncoding; 105 encodingName = newDoc.inputEncoding;
106 106
107 assertNull("documentgetinputencoding02",encodingName); 107 assertEquals("documentgetinputencoding02", "UTF-8".toLowerCase(), encoding Name.toLowerCase());
dominicc (has gone to gerrit) 2015/06/22 01:23:31 The spec your change mentions links to this to exp
Habib Virji 2015/06/22 14:07:30 The spec link I mentioned was to emphasise it does
philipj_slow 2015/06/23 08:32:56 "utf8" and "unicode-1-1-utf-8" don't matter here,
108 108
109 } 109 }
110 110
111 function runTest() { 111 function runTest() {
112 documentgetinputencoding02(); 112 documentgetinputencoding02();
113 } 113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698