ezsystems/ezpublish-legacy — pull request #888 by achasseux (2014-02-23 21:51:57+00:00)
Title: EZP-22398 : purge imagealias cache does not remove the aliases in xml attribute data_text

You can't remove DOMNodes from a DOMNodeList as you're iterating over
them in a foreach loop
Though, making a queue of items to remove seems to work