hettlage (100) [Avatar] Offline
#1
The explanation of the raise and lower functions on page 99 is a bit ambiguous: Does "bump your object to the top of its siblings in the DOM" mean that it is moved to the top in the DOM tree or that is moved to the top in the display?
elijah.meeks (123) [Avatar] Offline
#2
In the case of SVG, that means the same thing. There is no z-index, so the only way to draw an object over another in the same part of the SVG DOM is to bump it up the DOM.
hettlage (100) [Avatar] Offline
#3
I'm still a bit puzzled. I wouldn't understand "bumping it up the DOM" to mean "moving it to the end of the list of siblings", which is what raise() does according to the API.
elijah.meeks (123) [Avatar] Offline
#4
Because it bumps it up, meaning it brings it forward, so it puts it on the "top" of the stack of rendered elements.

But you know, maybe I'll use language like that, instead of the vague way I'm expressing it in the book.