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

Side by Side Diff: Source/core/dom/Node.idl

Issue 105733008: Let Node.nodeName never return null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
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 18 matching lines...) Expand all
29 const unsigned short CDATA_SECTION_NODE = 4; 29 const unsigned short CDATA_SECTION_NODE = 4;
30 const unsigned short ENTITY_REFERENCE_NODE = 5; // EntityRefer ence nodes are impossible to create in WebKit. 30 const unsigned short ENTITY_REFERENCE_NODE = 5; // EntityRefer ence nodes are impossible to create in WebKit.
31 const unsigned short ENTITY_NODE = 6; 31 const unsigned short ENTITY_NODE = 6;
32 const unsigned short PROCESSING_INSTRUCTION_NODE = 7; 32 const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
33 const unsigned short COMMENT_NODE = 8; 33 const unsigned short COMMENT_NODE = 8;
34 const unsigned short DOCUMENT_NODE = 9; 34 const unsigned short DOCUMENT_NODE = 9;
35 const unsigned short DOCUMENT_TYPE_NODE = 10; 35 const unsigned short DOCUMENT_TYPE_NODE = 10;
36 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; 36 const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
37 const unsigned short NOTATION_NODE = 12; 37 const unsigned short NOTATION_NODE = 12;
38 38
39 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing nodeName; 39 [PerWorldBindings] readonly attribute DOMString nodeName;
40 40
41 // FIXME: the spec says this can also raise on retrieval.
42 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, C ustomElementCallbacks] attribute DOMString nodeValue; 41 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, C ustomElementCallbacks] attribute DOMString nodeValue;
43 42
44 [PerWorldBindings] readonly attribute unsigned short nodeType; 43 [PerWorldBindings] readonly attribute unsigned short nodeType;
45 [PerWorldBindings] readonly attribute Node parentNode; 44 [PerWorldBindings] readonly attribute Node parentNode;
46 [PerWorldBindings] readonly attribute NodeList childNodes; 45 [PerWorldBindings] readonly attribute NodeList childNodes;
47 [PerWorldBindings] readonly attribute Node firstChild; 46 [PerWorldBindings] readonly attribute Node firstChild;
48 [PerWorldBindings] readonly attribute Node lastChild; 47 [PerWorldBindings] readonly attribute Node lastChild;
49 [PerWorldBindings] readonly attribute Node previousSibling; 48 [PerWorldBindings] readonly attribute Node previousSibling;
50 [PerWorldBindings] readonly attribute Node nextSibling; 49 [PerWorldBindings] readonly attribute Node nextSibling;
51 [PerWorldBindings] readonly attribute Document ownerDocument; 50 [PerWorldBindings] readonly attribute Document ownerDocument;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; 88 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
90 89
91 unsigned short compareDocumentPosition([Default=Undefined] optional Node other); 90 unsigned short compareDocumentPosition([Default=Undefined] optional Node other);
92 91
93 // Introduced in DOM4 92 // Introduced in DOM4
94 [ImplementedAs=bindingsContains] boolean contains([Default=Undefined] option al Node other); 93 [ImplementedAs=bindingsContains] boolean contains([Default=Undefined] option al Node other);
95 94
96 // IE extensions 95 // IE extensions
97 [PerWorldBindings] readonly attribute Element parentElement; 96 [PerWorldBindings] readonly attribute Element parentElement;
98 }; 97 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698