Fix bugs

getRefererKeyword double decode, always fails.
tail is seen visible even it is attached to a comment node;
so tail is seen as a nodes text, which is different with text_content();
Need more thinking on tail.