yuanqing/charming

String value should be trim first.

HelKyle opened this issue · 1 comments

when getting nodeValue of the TextNode, trim it (or ignore spaces?) first so the code below will working fine.

<h1>
  foo
</h1>

Preference is to leave it to the module consumer to do this type of sanitisation before calling charming