This occurs in both SAXConnector and in StAXStreamConnector.
In SAXConnector, there is code to determine if the text is ignoreable via:
however, that does NOT take into account that if the context has a DomLoader, the text should also not be ignorable.
StAXStreamConnector blindly calls processText(true); in start element without ANY attempt to determine if the "true" flag should not be true. It should also check for usage of DomLoader in context.current.loader.