Added method to get names and offsets from HTML