Pablo

root([filter])

Returns a collection of the element(s)’s topmost <svg> root nodes.

var screenA   = Pablo.svg({name: 'A'}),
    screenB   = Pablo.svg({name: 'B'}),
    container = Pablo(document.createElement('div'));

screenA.append(Pablo.circle());
screenB.append(Pablo.circle());

container.append([screenA, screenB]);

container.find('circle').root().each(function (screen) {
  alert(screen.tagName + ' ' + Pablo(screen).attr('name'));
});
Painting is just another way of keeping a diary.
Pablo Picasso