Add metatable to element nodes