For doWeb I'm fine since I can do my own XHR requests there, but with detectWeb I'm having a hard time detecting the document type. Eventually metadadata is injected into meta tags in the page by JavaScript, but I'm not sure if this either happens after detectWeb runs or just that the page fails to load within Scaffold. At least, pages don't render correctly in Scaffold.
Could I give up the type detection in detectWeb, making it always return "document", and then leave it to doWeb to find the correct document type? In Scaffold, this causes "Detection returned wrong item type" when running tests, so I'm a bit discouraged by that. Is there some other way in detectWeb to tell Zotero that "there is some kind of document here, but we don't yet know the type"? Or perhaps I could attack this in a different way?
Dan Michael