getSubStringLength() can't address the last character of a string?

Is it intentional that getSubStringLength() can't get the advance of the 
last character of a string?

According to SVG 1.1, getSubStringLength() raises an INDEX_SIZE_ERR 
exception "if the charnum is negative or if charnum+nchars is greater than 
or equal to the number of characters at this node", but it seems like 
"charnum+nchars" being equal to the number of characters should be fine.

Is this an error, or intentional?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 22 February 2008 02:00:08 UTC