W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2003

L3 Validation: values for NodeEditVAL.VAL_TRUE, VAL_FALSE, VAL_UNKNOWN

From: Curt Arnold <carnold@houston.rr.com>
Date: Wed, 03 Dec 2003 00:46:25 -0600
Message-ID: <3FCD86C1.3080503@houston.rr.com>
To: www-dom@w3.org

The values assigned for VAL_TRUE, VAL_FALSE and VAL_UNKNOWN appear to 
just follow the sequence established by VAL_WF, VAL_NS_WF, 
VAL_INCOMPLETE and VAL_SCHEMA (1, 2, 3, 4).

In scripting languages where the symbolic constants are not available, 
that would lead to code like:

if (node.canInsertBefore(node1, node2) == 6)

which isn't obvious.  It would be beneficial to change the values so 
that, at least, VAL_FALSE is 0.  I'd recommend, VAL_FALSE = 0, VAL_TRUE 
= 1 and VAL_UNKNOWN = 2.
Received on Wednesday, 3 December 2003 01:46:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT