[webkit-dev] Strings & Element Names Question

Alex Milowski alex at milowski.org
Thu Sep 24 15:11:03 PDT 2009


In my rendering code I have:

    if (localName() == "mfrac")
        object = new (arena) RenderFraction(this);

Is that better or worse than using MathMLNames::whatever for comparison
for element names?

In these contexts, I know that the element is a MathML element already.

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics


More information about the webkit-dev mailing list