Fix the bug of generating reftest by checking the value of 'rel' attribu...

...te of the 'link' element

whether equals "match" or "mismatch".