- From: Joseph Kesselman <keshlam@us.ibm.com>
- Date: Mon, 29 Oct 2001 09:38:30 -0500
- To: <www-dom@w3.org>
>The method description for Document::createElementNS however does not >contain a similar statement. Are these methods really supposed to behave >differently with regard to default attributes? The default-attr behavior should be the same. Good catch. >And finally, what does "there are known attributes with default values" >mean exactly. Deliberately fuzzy in DOM Level 1 and Level 2 because Abstract Schema support was deferred to DOM Level 3, and hence there really was no portable DOM API to define, describe, or manipulate default attribute values established by the DTD or Schema. But even in Level 3, it's possible that you may have a DOM which does not implement the Abstract Schema APIs, yet has an internal represtentation of that information and uses it to drive this behavior; the mechanism in that case would be implementation dependent. NOTE THAT DEFAULT ATTRIBUTES ARE A SEPARATE ISSUE FROM VALIDATION. XML processors are expected to use some information from the DTD/internal-subset (if one is referenced and available) even when not validating, and default attr values are in that class. ______________________________________ Joe Kesselman / IBM Research
Received on Monday, 29 October 2001 09:39:09 UTC