Update compare.lua to check line/column/offset fields on element nodes