Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
[mediawiki.git] / resources / src / polyfill-nodeTypes.js
blobc8acc86df4499cf4a8c2e08a4066c3a980bc5374
1 /**
2  * Adds window.Node with node types according to:
3  * https://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