improved isLink() method to use hasAttribute() to comply with specs (tip from jdalton), unrolled comparisons are faster than equivalent regexp (tip from kangax)
improved isLink() method to use hasAttribute() to comply with specs (tip from jdalton), unrolled comparisons are faster than equivalent regexp (tip from kangax)

dperini/nwmatcher,dperini/nwmatcher,dperini/nwmatcher