W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: What value for createAttributeNode().getSpecified()?

From: Don Park <donpark@quake.net>
Date: Wed, 9 Sep 1998 13:39:39 -0700
Message-ID: <001a01bddc31$f8d99840$2ee044c6@arcot-main>
To: <www-dom@w3.org>

Because there is no way to set a default attribute, I have implemented
createAttribute to returned with an Attribute whose specified value is true.
Although adding 'specified' parameter to createAttribute might be useful for
Level 2 when DTD support is fleshed out, I would prefer to add
createDefaultAttribute method in Level 2 than having to worry about default
attributes being set via setAttributeNode().  If you set default attribute
for one element instance, it will have to be reflected in all other
instances of that element as well.  It feels a bit hairy, don't you think?

Don Park

-----Original Message-----
From: keshlam@us.ibm.com <keshlam@us.ibm.com>
To: www-dom@w3.org <www-dom@w3.org>
Date: Wednesday, September 09, 1998 1:35 PM
Subject: What value for createAttributeNode().getSpecified()?

>As far as I can tell, the PR doesn't state whether a newly-created
>Attribute has its specified flag set true or false.
>It would be safer to either make the intial value explicit, or (probably
>better) pass it in as an argument to the factory.
>Joe Kesselman  / IBM Research
>Unless stated otherwise, all opinions are solely those of the author.
Received on Wednesday, 9 September 1998 16:48:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC