Updated HtmlTagTest class to remove issues involving the testMatches
testing functions using the equals method of the HtmlTag instead.
Further; updated HtmlTagTest to use a constructor which doesn't parse
the html and instead acts as a wrapper. This wrapper then will be used
by the HtmlValidator and passed to users as tokens in some way.
Provided functionality in HtmlTagImpl class such that it passes
HtmlTagTest cases adequately.
HtmlTag matches function is dependent on ordering of first tag. Tags
will only match if one tag is opening and the next tag is closing. Thus
they are order dependent. Updated tests to include testing for order
dependency.
Updated testing to include variations of self closing tags into the
isOpenTag, matches, and equals tests for the HtmlTagTest class.
isOpenTag test now failing because the isClosing is inadequately being
set with a conditional. As such changed to logical or statement to allow
a tag that is self closing to be considered closing.