Bug 107392 - mathbackground attribute is not rendered correctly for dynamically created <mi> elements
Summary: mathbackground attribute is not rendered correctly for dynamically created <m...
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2013-01-19 20:20 PST by Patrick Bochenek
Modified: 2013-11-25 04:41 PST (History)
1 user (show)

See Also:

mi mathbackground testcase.html (603 bytes, text/html)
2013-01-19 20:20 PST, Patrick Bochenek
no flags Details
testcase with explicit MathML namespace (644 bytes, text/html)
2013-11-25 04:41 PST, Frédéric Wang (:fredw)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Bochenek 2013-01-19 20:20:15 PST
Created attachment 183655 [details]
mi mathbackground testcase.html

Steps to reproduce:

1. Create dynamically <mi> element
2. Assign mathbackground attribute
3. Append <mi> to <math>

Actual results:

background color does not render

Expected results:

background color should be rendered as per the mathbackground attribute

I was able to test it only on iOS 6.01.
Comment 1 Frédéric Wang (:fredw) 2013-01-23 11:40:20 PST
So I guess it is the same issue as Mozilla's one: you must create the MathML elements with createElementNS + the MathML namespace, not simply createElement.
Comment 2 Frédéric Wang (:fredw) 2013-11-25 04:41:36 PST
Created attachment 217791 [details]
testcase with explicit MathML namespace

Here is a version with createElementNS and it does work for me.