Search the web
Sign In
New User? Sign Up
xbl-developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
first post: What flavors of XBL are there?   Message List  
Reply | Forward Message #11 of 38 |
Re: [xbl-developers] Re: first post: What flavors of XBL are there?

Jeremy Bowers:
> Interesting. If I'm reading the definition of "shadow tree" correctly,
> I consider it one of the *advantages* of XBLinJS that it uses *real*
> nodes and not half-implemented "shadow" nodes.
>
> My experience was with Mozilla around 1.7, and the shadow node
> implementation was disasterously buggy, compared to real nodes.
>
> Can you tell me why you *need* "shadow trees", rather than real DOM
> nodes created via createElement?

In a word, encapsulation. Having the shadow nodes inside a shadow tree
that is connected to the element, and not in the real DOM, affords some
level of encapsulation. True, it's not that well encapsulated because
you can always get to the shadow content through an attribute on the
bound element, but it does keep the implementation elements separate
from the main DOM.

> (My goal with XBLinJS is to have a *real* feature match with XBL, not
> to match implementation-detail for implementation-detail. If "shadow
> nodes" are just "how it's done" and not an actual feature of some kind
> providing direct benefit to the end programmer, I don't consider "it's
> missing shadow nodes" to be a valid criticism.)

Sure, I don't think shadow trees are really necessary for
form/presentation separation. It's just a bit cleaner, IMO. Especially
when you have nested bound elements.

--
Cameron McCormack ICQ: 26955922
cam (at) mcc.id.au MSN: cam (at) mcc.id.au
http://mcc.id.au/ JBR: heycam (at) jabber.org






Wed Apr 19, 2006 11:01 pm

heycam_yg
Offline Offline
Send Email Send Email

Forward
Message #11 of 38 |
Expand Messages Author Sort by Date

I count 4 different flavors: MozXBL1, MozXBL2, sXBL, w3cXBL2. This is not how they were/are originally named by the parties that designed them, but...
steltenpower
Offline Send Email
Apr 17, 2006
10:42 pm

Can we count XBLinJS as another serious flavour? http://www.jerf.org/resources/xblinjs/ The developer created it cause he doesn't like MozXBL: ...
steltenpower
Offline Send Email
Apr 19, 2006
11:59 am

Hi Ruud. ... I've wondered before whether an implementation of sXBL in script would be viable (to get more people to try using it in UAs other than Batik), but...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 19, 2006
12:54 pm

... Interesting. If I'm reading the definition of "shadow tree" correctly, I consider it one of the *advantages* of XBLinJS that it uses *real* nodes and not...
Jeremy Bowers
jerfb
Offline Send Email
Apr 19, 2006
3:52 pm

Hi, Jeremy- As I understand it, the advantage of shadow-trees is in their direct connection with the source elements, in terms of structure, semantics, and ...
Doug Schepers
d_a_schepers
Offline Send Email
Apr 19, 2006
8:49 pm

... Ah, yes, that makes sense. One of my basic objections about the way this stuff is being engineered is that everything you mentioned is dependent upon being...
Jeremy Bowers
jerfb
Offline Send Email
Apr 19, 2006
9:56 pm

... In a word, encapsulation. Having the shadow nodes inside a shadow tree that is connected to the element, and not in the real DOM, affords some level of...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 19, 2006
11:10 pm

Re: shadow nodes and event binding I think that the only things that you wouldn't be able to do with a Javascript implementation of an XBL would be obscuring...
Kurt Cagle
kurt_cagle
Offline Send Email
Apr 21, 2006
6:01 am

... Cameron, Not completely sure about that. I do agree that it would probably be fairly inefficient, but I'm not sure that a Javascript shadow tree ...
Kurt Cagle
kurt_cagle
Offline Send Email
Apr 21, 2006
5:48 am

... I don't think it would be that inefficient, but there'd be the issue of having things like: <svg ...> <g id="stuff"> <ex:star cx="100" cy="100"...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 21, 2006
6:33 am

What if there was a central requirement that the shadow tree 1) had to be contained within the element, 2) had to be in a namespace with a different prefix...
Kurt Cagle
kurt_cagle
Offline Send Email
Apr 21, 2006
6:59 am

... I added the xmlns declaration to your first svg tag, because I think you need it and I need it for my point. This won't work. The 'abbreviation' of the...
Jeremy Bowers
jerfb
Offline Send Email
Apr 21, 2006
10:02 pm

... Yeah, it seems a bit dodgy somehow to rely on the prefix that was used (especially since the element may have been created in a namespace but without a...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 22, 2006
3:08 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help