Add a getProperty() method for document element.