Currently MathMLOperatorDictionary has one dictionary indexed by Operator+Form and a list of horizontal operators. We could do like in Gecko and make "horizontal" a boolean property (encoded by a new MathMLOperatorDictionary::Flag), so that it can be directly integrated into the operator dictionary and accessed via MathMLOperatorDictionary::search. We just need to ensure that all the forms have the same direction.
(In reply to comment #0) > We just need to ensure that all the forms have the same direction. ... and we call MathMLOperatorDictionary::search with explicitForm = false
Created attachment 287383 [details] Experimental Patch
Comment on attachment 287383 [details] Experimental Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287383&action=review > Source/WebCore/mathml/MathMLOperatorElement.cpp:128 > + break; Why we don't return an attribute name for the case of Horizontal ?
Comment on attachment 287383 [details] Experimental Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287383&action=review >> Source/WebCore/mathml/MathMLOperatorElement.cpp:128 >> + break; > > Why we don't return an attribute name for the case of Horizontal ? Because horizontal is not a MathML attribute. It's just a property that we assign internally to a Unicode character.