Fixes to get html offsets working also.

Review URL: https://chromiumcodereview.appspot.com//12256053