Event Capturing and Bubbling in JavaScript

Hello, great article and clear explanation of event propagation!

One question: in the article you say that events start at the root of the document and the diagrams shows the window object as the starting point.

Isn’t the html element the root element of the document?

Where exactly does capturing start and bubbling end?