Constant Field Values (Common DOM API )
Date: 2026-01-21

# Constant Field Values

## Contents

- org.w3c.*

## org.w3c.*

- org.w3c.dom.DOMError
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `SEVERITY_ERROR` | `2`
  `public static final short` | `SEVERITY_FATAL_ERROR` | `3`
  `public static final short` | `SEVERITY_WARNING` | `1`

- org.w3c.dom.DOMException
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `DOMSTRING_SIZE_ERR` | `2`
  `public static final short` | `HIERARCHY_REQUEST_ERR` | `3`
  `public static final short` | `INDEX_SIZE_ERR` | `1`
  `public static final short` | `INUSE_ATTRIBUTE_ERR` | `10`
  `public static final short` | `INVALID_ACCESS_ERR` | `15`
  `public static final short` | `INVALID_CHARACTER_ERR` | `5`
  `public static final short` | `INVALID_MODIFICATION_ERR` | `13`
  `public static final short` | `INVALID_STATE_ERR` | `11`
  `public static final short` | `NAMESPACE_ERR` | `14`
  `public static final short` | `NO_DATA_ALLOWED_ERR` | `6`
  `public static final short` | `NO_MODIFICATION_ALLOWED_ERR` | `7`
  `public static final short` | `NOT_FOUND_ERR` | `8`
  `public static final short` | `NOT_SUPPORTED_ERR` | `9`
  `public static final short` | `SYNTAX_ERR` | `12`
  `public static final short` | `TYPE_MISMATCH_ERR` | `17`
  `public static final short` | `VALIDATION_ERR` | `16`
  `public static final short` | `WRONG_DOCUMENT_ERR` | `4`

- org.w3c.dom.Node
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `ATTRIBUTE_NODE` | `2`
  `public static final short` | `CDATA_SECTION_NODE` | `4`
  `public static final short` | `COMMENT_NODE` | `8`
  `public static final short` | `DOCUMENT_FRAGMENT_NODE` | `11`
  `public static final short` | `DOCUMENT_NODE` | `9`
  `public static final short` | `DOCUMENT_POSITION_CONTAINED_BY` | `16`
  `public static final short` | `DOCUMENT_POSITION_CONTAINS` | `8`
  `public static final short` | `DOCUMENT_POSITION_DISCONNECTED` | `1`
  `public static final short` | `DOCUMENT_POSITION_FOLLOWING` | `4`
  `public static final short` | `DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC` | `32`
  `public static final short` | `DOCUMENT_POSITION_PRECEDING` | `2`
  `public static final short` | `DOCUMENT_TYPE_NODE` | `10`
  `public static final short` | `ELEMENT_NODE` | `1`
  `public static final short` | `ENTITY_NODE` | `6`
  `public static final short` | `ENTITY_REFERENCE_NODE` | `5`
  `public static final short` | `NOTATION_NODE` | `12`
  `public static final short` | `PROCESSING_INSTRUCTION_NODE` | `7`
  `public static final short` | `TEXT_NODE` | `3`

- org.w3c.dom.TypeInfo
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final int` | `DERIVATION_EXTENSION` | `2`
  `public static final int` | `DERIVATION_LIST` | `8`
  `public static final int` | `DERIVATION_RESTRICTION` | `1`
  `public static final int` | `DERIVATION_UNION` | `4`

- org.w3c.dom.UserDataHandler
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `NODE_ADOPTED` | `5`
  `public static final short` | `NODE_CLONED` | `1`
  `public static final short` | `NODE_DELETED` | `3`
  `public static final short` | `NODE_IMPORTED` | `2`
  `public static final short` | `NODE_RENAMED` | `4`

- org.w3c.dom.bootstrap.DOMImplementationRegistry
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final String` | `PROPERTY` | `"org.w3c.dom.DOMImplementationSourceList"`

- org.w3c.dom.css.CSSPrimitiveValue
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `CSS_ATTR` | `22`
  `public static final short` | `CSS_CM` | `6`
  `public static final short` | `CSS_COUNTER` | `23`
  `public static final short` | `CSS_DEG` | `11`
  `public static final short` | `CSS_DIMENSION` | `18`
  `public static final short` | `CSS_EMS` | `3`
  `public static final short` | `CSS_EXS` | `4`
  `public static final short` | `CSS_GRAD` | `13`
  `public static final short` | `CSS_HZ` | `16`
  `public static final short` | `CSS_IDENT` | `21`
  `public static final short` | `CSS_IN` | `8`
  `public static final short` | `CSS_KHZ` | `17`
  `public static final short` | `CSS_MM` | `7`
  `public static final short` | `CSS_MS` | `14`
  `public static final short` | `CSS_NUMBER` | `1`
  `public static final short` | `CSS_PC` | `10`
  `public static final short` | `CSS_PERCENTAGE` | `2`
  `public static final short` | `CSS_PT` | `9`
  `public static final short` | `CSS_PX` | `5`
  `public static final short` | `CSS_RAD` | `12`
  `public static final short` | `CSS_RECT` | `24`
  `public static final short` | `CSS_RGBCOLOR` | `25`
  `public static final short` | `CSS_S` | `15`
  `public static final short` | `CSS_STRING` | `19`
  `public static final short` | `CSS_UNKNOWN` | `0`
  `public static final short` | `CSS_URI` | `20`

- org.w3c.dom.css.CSSRule
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `CHARSET_RULE` | `2`
  `public static final short` | `FONT_FACE_RULE` | `5`
  `public static final short` | `IMPORT_RULE` | `3`
  `public static final short` | `MEDIA_RULE` | `4`
  `public static final short` | `PAGE_RULE` | `6`
  `public static final short` | `STYLE_RULE` | `1`
  `public static final short` | `UNKNOWN_RULE` | `0`

- org.w3c.dom.css.CSSValue
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `CSS_CUSTOM` | `3`
  `public static final short` | `CSS_INHERIT` | `0`
  `public static final short` | `CSS_PRIMITIVE_VALUE` | `1`
  `public static final short` | `CSS_VALUE_LIST` | `2`

- org.w3c.dom.events.Event
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `AT_TARGET` | `2`
  `public static final short` | `BUBBLING_PHASE` | `3`
  `public static final short` | `CAPTURING_PHASE` | `1`

- org.w3c.dom.events.EventException
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `UNSPECIFIED_EVENT_TYPE_ERR` | `0`

- org.w3c.dom.events.MutationEvent
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `ADDITION` | `2`
  `public static final short` | `MODIFICATION` | `1`
  `public static final short` | `REMOVAL` | `3`

- org.w3c.dom.ls.DOMImplementationLS
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `MODE_ASYNCHRONOUS` | `2`
  `public static final short` | `MODE_SYNCHRONOUS` | `1`

- org.w3c.dom.ls.LSException
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `PARSE_ERR` | `81`
  `public static final short` | `SERIALIZE_ERR` | `82`

- org.w3c.dom.ls.LSParser
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `ACTION_APPEND_AS_CHILDREN` | `1`
  `public static final short` | `ACTION_INSERT_AFTER` | `4`
  `public static final short` | `ACTION_INSERT_BEFORE` | `3`
  `public static final short` | `ACTION_REPLACE` | `5`
  `public static final short` | `ACTION_REPLACE_CHILDREN` | `2`

- org.w3c.dom.ls.LSParserFilter
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `FILTER_ACCEPT` | `1`
  `public static final short` | `FILTER_INTERRUPT` | `4`
  `public static final short` | `FILTER_REJECT` | `2`
  `public static final short` | `FILTER_SKIP` | `3`

- org.w3c.dom.ranges.Range
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `END_TO_END` | `2`
  `public static final short` | `END_TO_START` | `3`
  `public static final short` | `START_TO_END` | `1`
  `public static final short` | `START_TO_START` | `0`

- org.w3c.dom.ranges.RangeException
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `BAD_BOUNDARYPOINTS_ERR` | `1`
  `public static final short` | `INVALID_NODE_TYPE_ERR` | `2`

- org.w3c.dom.traversal.NodeFilter
  Modifier and Type | Constant Field | Value
  --- | --- | ---
  `public static final short` | `FILTER_ACCEPT` | `1`
  `public static final short` | `FILTER_REJECT` | `2`
  `public static final short` | `FILTER_SKIP` | `3`
  `public static final int` | `SHOW_ALL` | `-1`
  `public static final int` | `SHOW_ATTRIBUTE` | `2`
  `public static final int` | `SHOW_CDATA_SECTION` | `8`
  `public static final int` | `SHOW_COMMENT` | `128`
  `public static final int` | `SHOW_DOCUMENT` | `256`
  `public static final int` | `SHOW_DOCUMENT_FRAGMENT` | `1024`
  `public static final int` | `SHOW_DOCUMENT_TYPE` | `512`
  `public static final int` | `SHOW_ELEMENT` | `1`
  `public static final int` | `SHOW_ENTITY` | `32`
  `public static final int` | `SHOW_ENTITY_REFERENCE` | `16`
  `public static final int` | `SHOW_NOTATION` | `2048`
  `public static final int` | `SHOW_PROCESSING_INSTRUCTION` | `64`
  `public static final int` | `SHOW_TEXT` | `4`

Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2026, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.