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

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

Issue 2838123002: Count element name validity per DOM versus HTML parsing. (Closed)
Patch Set: Do not need the attribute counting. 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 [ImplementedAs=characterSet] readonly attribute DOMString charset; // legacy alias of .characterSet 48 [ImplementedAs=characterSet] readonly attribute DOMString charset; // legacy alias of .characterSet
49 [ImplementedAs=characterSet] readonly attribute DOMString inputEncoding; // legacy alias of .characterSet 49 [ImplementedAs=characterSet] readonly attribute DOMString inputEncoding; // legacy alias of .characterSet
50 readonly attribute DOMString contentType; 50 readonly attribute DOMString contentType;
51 51
52 readonly attribute DocumentType? doctype; 52 readonly attribute DocumentType? doctype;
53 readonly attribute Element? documentElement; 53 readonly attribute Element? documentElement;
54 HTMLCollection getElementsByTagName(DOMString localName); 54 HTMLCollection getElementsByTagName(DOMString localName);
55 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); 55 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName);
56 HTMLCollection getElementsByClassName(DOMString classNames); 56 HTMLCollection getElementsByClassName(DOMString classNames);
57 57
58 [NewObject, DoNotTestNewObject, CustomElementCallbacks, PerWorldBindings, Ra isesException] Element createElement(DOMString localName); 58 // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed.
59 [NewObject, DoNotTestNewObject, CustomElementCallbacks, RaisesException] Ele ment createElementNS(DOMString? namespaceURI, DOMString qualifiedName); 59 [CallWith=EnteredWindow, NewObject, DoNotTestNewObject, CustomElementCallbac ks, PerWorldBindings, RaisesException] Element createElement(DOMString localName );
60 // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed.
61 [CallWith=EnteredWindow, NewObject, DoNotTestNewObject, CustomElementCallbac ks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName);
60 [NewObject] DocumentFragment createDocumentFragment(); 62 [NewObject] DocumentFragment createDocumentFragment();
61 [NewObject] Text createTextNode(DOMString data); 63 [NewObject] Text createTextNode(DOMString data);
62 [NewObject, RaisesException] CDATASection createCDATASection(DOMString data) ; 64 [NewObject, RaisesException] CDATASection createCDATASection(DOMString data) ;
63 [NewObject] Comment createComment(DOMString data); 65 [NewObject] Comment createComment(DOMString data);
64 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi on(DOMString target, DOMString data); 66 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi on(DOMString target, DOMString data);
65 67
66 [NewObject, DoNotTestNewObject, CEReactions, CustomElementCallbacks, RaisesE xception] Node importNode(Node node, optional boolean deep = false); 68 [NewObject, DoNotTestNewObject, CEReactions, CustomElementCallbacks, RaisesE xception] Node importNode(Node node, optional boolean deep = false);
67 [RaisesException, CEReactions, CustomElementCallbacks] Node adoptNode(Node n ode); 69 [RaisesException, CEReactions, CustomElementCallbacks] Node adoptNode(Node n ode);
68 70
69 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA ttribute(DOMString localName); 71 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA ttribute(DOMString localName);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 optional unrestricted float rotationAngle = 0, 171 optional unrestricted float rotationAngle = 0,
170 optional unrestricted float force = 0); 172 optional unrestricted float force = 0);
171 [RuntimeEnabled=TouchEventFeatureDetection] TouchList createTouchList(Touch. .. touches); 173 [RuntimeEnabled=TouchEventFeatureDetection] TouchList createTouchList(Touch. .. touches);
172 174
173 // Custom Elements 175 // Custom Elements
174 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-register 176 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-register
175 // FIXME: The registerElement return type should be Function. 177 // FIXME: The registerElement return type should be Function.
176 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString type, optional ElementRegistrationOptions options); 178 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString type, optional ElementRegistrationOptions options);
177 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-instantiate 179 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-instantiate
178 // FIXME: The typeExtension arguments should not be nullable. 180 // FIXME: The typeExtension arguments should not be nullable.
179 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString localName, (DOMString or Dictionary)? options); 181 // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed.
180 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, (DOMString or Dictionary)? options); 182 [CallWith=EnteredWindow, CustomElementCallbacks, PerWorldBindings, RaisesExc eption] Element createElement(DOMString localName, (DOMString or Dictionary)? op tions);
183 // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed.
184 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] Element cr eateElementNS(DOMString? namespaceURI, DOMString qualifiedName, (DOMString or Di ctionary)? options);
181 185
182 // Page Visibility 186 // Page Visibility
183 // https://w3c.github.io/page-visibility/#extensions-to-the-document-interfa ce 187 // https://w3c.github.io/page-visibility/#extensions-to-the-document-interfa ce
184 readonly attribute boolean hidden; 188 readonly attribute boolean hidden;
185 readonly attribute VisibilityState visibilityState; 189 readonly attribute VisibilityState visibilityState;
186 190
187 // CORS and RFC1918 191 // CORS and RFC1918
188 // https://wicg.github.io/cors-rfc1918/#feature-detect 192 // https://wicg.github.io/cors-rfc1918/#feature-detect
189 [RuntimeEnabled=CorsRFC1918, ImplementedAs=addressSpaceForBindings] readonly attribute AddressSpace addressSpace; 193 [RuntimeEnabled=CorsRFC1918, ImplementedAs=addressSpaceForBindings] readonly attribute AddressSpace addressSpace;
190 194
(...skipping 17 matching lines...) Expand all
208 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 212 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
209 attribute EventHandler onselectionchange; 213 attribute EventHandler onselectionchange;
210 attribute EventHandler onselectstart; 214 attribute EventHandler onselectstart;
211 attribute EventHandler onwheel; 215 attribute EventHandler onwheel;
212 }; 216 };
213 217
214 Document implements GlobalEventHandlers; 218 Document implements GlobalEventHandlers;
215 Document implements ParentNode; 219 Document implements ParentNode;
216 Document implements NonElementParentNode; 220 Document implements NonElementParentNode;
217 Document implements DocumentOrShadowRoot; 221 Document implements DocumentOrShadowRoot;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/TreeScopeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698