Add support for data-properties in `valueOf()`