Work arounds to inconsistency between LXML-OSX and LXML-EveryoneElse