adding support for value attribute on text elements