public override void Read(Tokeniser t, CharacterReader r)
            {
                if (r.MatchesLetter())
                {
                    string name = r.ConsumeLetterSequence();
                    t.tagPending.AppendTagName(name.ToLowerInvariant());
                    t.dataBuffer.Append(name);
                    return;
                }

                char c = r.Consume();

                switch (c)
                {
                case '\t':
                case '\n':
                case '\f':
                case ' ':
                    if (t.IsAppropriateEndTagToken())
                    {
                        t.Transition(BeforeAttributeName);
                    }
                    else
                    {
                        AnythingElse(t, r);
                    }
                    break;

                case '/':
                    if (t.IsAppropriateEndTagToken())
                    {
                        t.Transition(SelfClosingStartTag);
                    }
                    else
                    {
                        AnythingElse(t, r);
                    }
                    break;

                case '>':
                    if (t.IsAppropriateEndTagToken())
                    {
                        t.EmitTagPending();
                        t.Transition(Data);
                    }
                    else
                    {
                        AnythingElse(t, r);
                    }
                    break;

                default:
                    AnythingElse(t, r);
                    break;
                }
            }