W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: L2 Document::createElement behaviour

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Mon, 29 Oct 2001 09:38:30 -0500
To: <www-dom@w3.org>
Message-ID: <OF54D8383B.3D598FB0-ON85256AF4.004FD29B@pok.ibm.com>

>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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT