Most ePub readers are intentionally not compliant with the standard, because the standard allows way too much. Including, for example, arbitrary execution.
EPUB3 is a half-baked standard that nothing actually fully supports. The JavaScript parts especially—most e-readers don’t ever plan on adding JS support, even if they nominally support EPUB3.