W3C home > Mailing lists > Public > www-svg@w3.org > February 2008

getNumberOfChars(), 16-bit units, and Acid3

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 13 Feb 2008 13:21:42 +0100
To: www-svg@w3.org, "Ian Hickson" <ian@hixie.ch>
Message-ID: <op.t6gpygw764w2qv@annevk-t60.oslo.opera.com>

Hi,

Hereby a request to change both SVG 1.1 and Acid3. I'd like SVG 1.1 to  
change to say that the method getNumberOfChars() is based on 16-bit units  
and that Acid3 drops the following test:

   if (numberOfChars == expectedAdvances.length + 1)

The rationale for this is that the DOM is based on 16-bit units  
throughout. DOMString, DOM Level 2 Traversal and Range, etc. In additiona,  
ECMAScript is based on 16-bit units too. While I understand that this is  
an unfortunate legacy I don't think SVG is to place to be different from  
all other APIs in existence. I'd like the APIs for developers to be as  
consistent as possible and if that requires 16-bit units because of  
unfortunate legacy so be it.

http://www.w3.org/TR/SVG11/text.html#DOMInterfaces defines  
getNumberOfChars().

Also, I might have missed similar tests part of test 69 of Acid3. These  
would likewise have to be changed.

Kind regards,


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 13 February 2008 12:17:58 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:38 GMT