Changed Property.fromElement() to set the value rather than just return it.