Availability
DOM Level 2 Range
Constants
The following constants define the legal values for the
code property of a RangeException object. Note
that these constants are static properties of RangeException, not
properties of individual exception objects.
unsigned short BAD_BOUNDARYPOINTS_ERR = 1
The boundary points of a range are not legal for the requested
operation.
unsigned short INVALID_NODE_TYPE_ERR = 2
An attempt was made to set the container node of a range boundary
point to an invalid node or a node with an invalid ancestor.
Properties
unsigned short code
An error code that provides some detail about what caused the
exception. The legal values (and their meanings) for this property
are defined by the constants just listed.
Description
A RangeException is thrown by certain methods of the Range interface
to signal a problem of some sort. Note that most exceptions thrown by
Range methods are DOMException objects. A RangeException is generated
only when none of the existing DOMException error constants is
appropriate to describe the exception.
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.