Use value for attribute instead of textContent

'Attr.textContent' is deprecated. Please use 'value' instead.
Merge pull request #277 from YungSang/topic

Use value for attribute instead of textContent