aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/NodeConstants.h
blob: ebbdc781245a0d589b115ca332813cb79caa625d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Copyright (C) 2016 Apple Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#pragma once

namespace WebCore {

struct NodeConstants {
    enum NodeType {
        ELEMENT_NODE = 1,
        ATTRIBUTE_NODE = 2,
        TEXT_NODE = 3,
        CDATA_SECTION_NODE = 4,
        PROCESSING_INSTRUCTION_NODE = 7,
        COMMENT_NODE = 8,
        DOCUMENT_NODE = 9,
        DOCUMENT_TYPE_NODE = 10,
        DOCUMENT_FRAGMENT_NODE = 11,
    };

    enum DeprecatedNodeType {
        ENTITY_REFERENCE_NODE = 5,
        ENTITY_NODE = 6,
        NOTATION_NODE = 12,
    };

    static const uint8_t LastNodeType = NOTATION_NODE;
};

} // namespace WebCore::NodeType
cli-flags&id=892593c73b93bd5c0d4a9211c08646729f22f034&follow=1'>fix install testGravatar Dylan Conway 2-6/+8 2023-10-12fix editing package json when adding github dependency (#6432)Gravatar Dylan Conway 5-14/+146 * fix package name added to package json * check for github tag * remove alloc * some tests * fix test 2023-10-12Update installation.mdGravatar Colin McDonnell 1-8/+14 2023-10-12Update installation.mdGravatar Colin McDonnell 1-3/+3 2023-10-12fix(install): re-evaluate overrides when removedbun-v1.0.6Gravatar dave caruso 3-3/+45 2023-10-12chore: add missing ending quote (#6436)Gravatar Luna 1-1/+1 2023-10-12feat(install): support npm overrides/yarn resolutions, one level deep only ↵Gravatar dave caruso 7-31/+640 (#6435) * disable zig fmt on generated ResolvedSourceTag.zig * overrides * it works * ok * a --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> 2023-10-11fix #6416 (#6430)Gravatar Dylan Conway 2-1/+132 * make sure latest is checked after prerelease * test and fix * test for when latest matches prerelease 2023-10-11Bump WebKitGravatar Jarred Sumner 9-29/+29 2023-10-11Bump!Gravatar Jarred Sumner 1-1/+1 2023-10-11Update JSCUSocketsLoopIntegration.cppGravatar Dylan Conway 1-2/+2 2023-10-11Update installation.mdGravatar Colin McDonnell 1-10/+7