Am I? This is just caching the nextSibling in s. Rest of code still deals with the current node n.