1 // Copyright 2006 The Closure Library Authors. All Rights Reserved.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS-IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
16 * @fileoverview Definition of goog.dom.NodeType.
19 goog.provide('goog.dom.NodeType');
23 * Constants for the nodeType attribute in the Node interface.
25 * These constants match those specified in the Node interface. These are
26 * usually present on the Node object in recent browsers, but not in older
27 * browsers (specifically, early IEs) and thus are given here.
29 * In some browsers (early IEs), these are not defined on the Node object,
30 * so they are provided here.
32 * See http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247
42 PROCESSING_INSTRUCTION: 7,
46 DOCUMENT_FRAGMENT: 11,