user defined element properties should be retrievable with getAttribute

Fixes Issue #5295