- From: Don Park <donpark@quake.net>
- Date: Wed, 9 Sep 1998 13:39:39 -0700
- To: <www-dom@w3.org>
Joe, 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 Docuverse -----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