Bug 26293: Reformat getElementRect and link to appropriate areas