[Bug 10115] EOF handling in foreign content needs to change the insertion mode

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10115





--- Comment #2 from Eric Seidel <eric@webkit.org>  2010-07-08 22:29:52 ---
This is what I've done for now:

    case InForeignContentMode:
        parseError(token);
        // FIXME: This would infinite loop otherwise, for now, violate the
spec.
        // http://www.w3.org/Bugs/Public/show_bug.cgi?id=10115
        HTMLElementStack::ElementRecord* record =
m_tree.openElements()->topRecord();
        for (; record; record = record->next())
            if (record->element()->namespaceURI() == xhtmlNamespaceURI)
                break;
            m_tree->openElements()->pop();
        }
        processEndOfFile(token);
        break;

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 8 July 2010 22:29:54 UTC