W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: Namespace treatment

From: David Brownell <david-b@pacbell.net>
Date: Mon, 06 Mar 2000 08:14:58 -0800
Message-ID: <38C3D982.F8F1B05D@pacbell.net>
To: james.anderson@mecomnet.de
Cc: "www-dom@w3.org" <www-dom@w3.org>
james anderson wrote:
> In any case, the issue of early/late binding is independent of where the
> URI (or prefix) is bound. The dom binds it to the element node. The
> alternative would have been to make the name itself a first class node
> and bind the URI there. Whether it is then late or early bound is a
> separate issue.

I believe that I was the one who introduced the terminology of early/late
binding in this situation, and it was in recognition of something that
didn't get brought up yet on this thread:  folk regularly implement DOM
using specialized subclasses to express behaviors of element types.

So for example an XHTML "img" node might well know how to render itself
and incrementally fetch an image -- but the "p" node would instead be
smart about reflowing contained inline text content.  Good non-browser
examples exist too, not limited to additional methods in HTML DOM nodes.

Given that recognition, it's clear that "early" bindings need to be
accomodated in some way, since the class implementing a DOM node can't
be changed after-the-fact ... and  those behaviors are exactly the ones
that folk intend to associate with elements, based on namespace IDs.

For nodes that don't implement such specialized behaviors, it is true
that "late" binding could work just fine; names could just be another
kind of attribute for elements (and attributes etc).  At this time, DOM
doesn't support such a notion though.

- Dave
Received on Monday, 6 March 2000 11:15:01 UTC

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