auselit / lore

Firefox extension for authoring and publishing annotations and compound objects
http://www.itee.uq.edu.au/eresearch/projects/aus-e-lit
Other
6 stars 3 forks source link

Xpointer resolution fails sometimes in variation window #22

Open AnnaGerber opened 13 years ago

AnnaGerber commented 13 years ago

The markers that highlight text in the variation window aren't created until the onLoad() event has occurred for the variation window. So in theory, any xpointer errors in the logs are due to either bugs within the xpointer library or the page's contents being changed. However I think some pages maybe failing due to embedded javascript which dynamically changes the DOM. While this is unavoidable, it might be worth adding small timeout after page load or waiting for other more specific events to see whether that fixes offending pages. One of the variations which experience this problem is titled 'TAGORE & PATRICK WHITE', the variation window which should selected a text annotation sometimes fails.