On Fri, 7 Jun 2002, Garland foster wrote:

> The DOM level 1 W3C's recommendation specifies node_name, node_type and
> node_value,
> I'd like the DOMextension to map the W3C spec as close as possible.

but it's at least a DOM level 2 W3C recommendation:
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-637646024
(except type)

> I'd even recommend not implementing the suggested functions as alises since
> that would
> encorage non-standard DOM applications.

keeping BC for some time is not that bad :)

chregu

>
> ----- Original Message -----
> From: Joseph Tate <[EMAIL PROTECTED]>
> To: Php-Dev List <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 11:16 AM
> Subject: [PHP-DEV] DOMXML Function consistency
>
>
> > A bug report or two have been made regarding function names in attribute
> > nodes.  Taking a look, nodes have the following access functions:
> >
> > node_name
> > node_type
> > node_value
> >
> > etc.  However attribute nodes have the following access functions:
> >
> > name
> > value
> > specified
> >
> > I am thinking that to make it more consistent, we should change the
> > attribute functions to
> > attr_name or node_name
> > attr_value or node_value
> > attr_specified or node_specified
> >
> > I'd vote for the latter series since the programmer already knows they're
> > attributes.  Renaming will reduce the WTF factor.  We can leave the
> aliases
> > to the old functions for a while to maintain BC.
> >
> > WISH: I wish there was a Zend Function for marking a function alias as
> > deprecated, I.e. so that a warning message is displayed if the function is
> > used after being marked deprecated.  A way to display the replacement
> > function in the warning message would be nice too.
> >
> > Joseph
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>

-- 
nam...christian stocker    adr...bremgartnerstr. 66, ch-8003 zurich
pho...+41  1 451 6021      www...http://phant.ch/chregu
mob...+41 76 561 8860      [EMAIL PROTECTED]
wor...+41  1 240 5670      gpg...0x5CE1DECB


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to