In pages to be parsed as XHTML, Amaya fails on URL's containing ampersand ("&") delimiters. For example,

URL with search string

Amaya complains "not well-formed (invalid token)", after the token following the first ampersand.

Without the XHTML DOCTYPE, this does not happen.

For a real-life example, see: Eurasian Coot.