Mini DOM emulator (just enough for what Parcela uses)