Use Element Traversal API (https://hacks.mozilla.org/2009/06/dom-traversal/); tighten up logic
Use Element Traversal API (https://hacks.mozilla.org/2009/06/dom-traversal/); tighten up logic

premasagar/pablo,premasagar/pablo