Merge "Remove not used private member variable mParserWarnings from OutputPage"
[mediawiki.git] / resources / src / polyfill-nodeTypes.js
blob556b51b4fd76441749d0d72a0e9588f166fbb7a9
1 /**
2  * Adds window.Node with node types according to:
3  * http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247
4  */
6 window.Node = window.Node || {
7         ELEMENT_NODE:                1,
8         ATTRIBUTE_NODE:              2,
9         TEXT_NODE:                   3,
10         CDATA_SECTION_NODE:          4,
11         ENTITY_REFERENCE_NODE:       5,
12         ENTITY_NODE:                 6,
13         PROCESSING_INSTRUCTION_NODE: 7,
14         COMMENT_NODE:                8,
15         DOCUMENT_NODE:               9,
16         DOCUMENT_TYPE_NODE:          10,
17         DOCUMENT_FRAGMENT_NODE:      11,
18         NOTATION_NODE:               12