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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.idl

Issue 1365923002: Make Document.charset an alias of characterSet, as per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 (C) 2006, 2007, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 20 matching lines...) Expand all
31 // FIXME: Document should have a constructor. crbug.com/238234 31 // FIXME: Document should have a constructor. crbug.com/238234
32 interface Document : Node { 32 interface Document : Node {
33 [SameObject] readonly attribute DOMImplementation implementation; 33 [SameObject] readonly attribute DOMImplementation implementation;
34 readonly attribute DOMString URL; 34 readonly attribute DOMString URL;
35 // FIXME: documentURI should not be nullable. 35 // FIXME: documentURI should not be nullable.
36 [ImplementedAs=url] readonly attribute DOMString? documentURI; 36 [ImplementedAs=url] readonly attribute DOMString? documentURI;
37 readonly attribute DOMString origin; 37 readonly attribute DOMString origin;
38 readonly attribute DOMString compatMode; 38 readonly attribute DOMString compatMode;
39 39
40 readonly attribute DOMString characterSet; 40 readonly attribute DOMString characterSet;
41 [MeasureAs=DocumentInputEncoding, ImplementedAs=characterSet] readonly attri bute DOMString inputEncoding; // legacy alias of .characterSet 41 [ImplementedAs=characterSet] readonly attribute DOMString charset; // legacy alias of .characterSet
42 [ImplementedAs=characterSet] readonly attribute DOMString inputEncoding; // legacy alias of .characterSet
42 readonly attribute DOMString contentType; 43 readonly attribute DOMString contentType;
43 44
44 readonly attribute DocumentType? doctype; 45 readonly attribute DocumentType? doctype;
45 readonly attribute Element? documentElement; 46 readonly attribute Element? documentElement;
46 HTMLCollection getElementsByTagName(DOMString localName); 47 HTMLCollection getElementsByTagName(DOMString localName);
47 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); 48 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName);
48 HTMLCollection getElementsByClassName(DOMString classNames); 49 HTMLCollection getElementsByClassName(DOMString classNames);
49 50
50 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme nt createElement(DOMString localName); 51 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme nt createElement(DOMString localName);
51 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS (DOMString? namespaceURI, DOMString qualifiedName); 52 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS (DOMString? namespaceURI, DOMString qualifiedName);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // FIXME: The typeExtension arguments should not be nullable. 195 // FIXME: The typeExtension arguments should not be nullable.
195 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString localName, DOMString? typeExtension); 196 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString localName, DOMString? typeExtension);
196 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension); 197 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension);
197 198
198 // Page Visibility 199 // Page Visibility
199 // http://www.w3.org/TR/page-visibility/#sec-document-interface 200 // http://www.w3.org/TR/page-visibility/#sec-document-interface
200 readonly attribute boolean hidden; 201 readonly attribute boolean hidden;
201 readonly attribute VisibilityState visibilityState; 202 readonly attribute VisibilityState visibilityState;
202 203
203 // Non-standard APIs 204 // Non-standard APIs
204 [MeasureAs=DocumentCharset] readonly attribute DOMString charset;
205 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset; 205 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset;
206 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U ndefined] optional long x, [Default=Undefined] optional long y); 206 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U ndefined] optional long x, [Default=Undefined] optional long y);
207 [CallWith=ScriptState, DeprecateAs=DocumentGetCSSCanvasContext] any getCSSCa nvasContext(DOMString contextId, DOMString name, long width, long height); 207 [CallWith=ScriptState, DeprecateAs=DocumentGetCSSCanvasContext] any getCSSCa nvasContext(DOMString contextId, DOMString name, long width, long height);
208 208
209 // Deprecated prefixed page visibility API. 209 // Deprecated prefixed page visibility API.
210 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 210 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
211 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 211 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
212 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 212 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
213 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 213 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
214 214
215 // Event handler attributes 215 // Event handler attributes
216 attribute EventHandler onbeforecopy; 216 attribute EventHandler onbeforecopy;
217 attribute EventHandler onbeforecut; 217 attribute EventHandler onbeforecut;
218 attribute EventHandler onbeforepaste; 218 attribute EventHandler onbeforepaste;
219 attribute EventHandler oncopy; 219 attribute EventHandler oncopy;
220 attribute EventHandler oncut; 220 attribute EventHandler oncut;
221 attribute EventHandler onpaste; 221 attribute EventHandler onpaste;
222 attribute EventHandler onsearch; 222 attribute EventHandler onsearch;
223 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 223 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
224 attribute EventHandler onselectionchange; 224 attribute EventHandler onselectionchange;
225 attribute EventHandler onselectstart; 225 attribute EventHandler onselectstart;
226 attribute EventHandler onwheel; 226 attribute EventHandler onwheel;
227 }; 227 };
228 228
229 Document implements GlobalEventHandlers; 229 Document implements GlobalEventHandlers;
230 Document implements ParentNode; 230 Document implements ParentNode;
231 Document implements NonElementParentNode; 231 Document implements NonElementParentNode;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698