WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
116232
REGRESSION: MathML in an XHTML "a" link element is now underlined
https://bugs.webkit.org/show_bug.cgi?id=116232
Summary
REGRESSION: MathML in an XHTML "a" link element is now underlined
Chris W. Johnson
Reported
2013-05-16 09:20:57 PDT
Created
attachment 201965
[details]
MathML embedded in an XHTML "a" link element. In the current Safari (6.0.4) the following is not a problem, but it is a problem in the current WebKit nightlies: Embedding MathML markup within an XHTML "a" link element causes every element in the MathML markup to appear with a blue link underline. While logical up to a point, this is not a good practice when dealing with MathML. The most serious problem is that it can change the apparent meaning of elements in the MathML, notably and plus sign with a link underline looks like a completely operator, the "±" sign. Less serious, but worth considering, is that it makes a visual mess of the MathML rendering.
Attachments
MathML embedded in an XHTML "a" link element.
(702 bytes, application/xhtml+xml)
2013-05-16 09:20 PDT
,
Chris W. Johnson
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2013-05-17 10:25:58 PDT
Firefox behaves as expected: MathML content is clickable and blue, but not underlined.
Frédéric Wang (:fredw)
Comment 2
2013-05-17 12:43:39 PDT
Gecko has the following rule in the MathML stylesheet: :-moz-any-link { text-decoration: none !important; } Probably, the same should be done in Source/WebCore/css/mathml.css (with -webkit instead of -moz).
Frédéric Wang (:fredw)
Comment 3
2013-05-18 01:24:27 PDT
Mmm, even setting text-decoration: none explicitly on the <math> does not seem to remove the underline, so I guess it is done by another mechanism. BTW, Gecko does not handle this case very well either, it does not underline the text, but gaps are visible:
https://bugzilla.mozilla.org/show_bug.cgi?id=667567
Also, I believe the appropriate way to do links is via the MathML3 href attribute (
bug 85733
).
Ahmad Saleem
Comment 4
2022-09-17 03:19:39 PDT
I am still able to reproduce this bug using attached test case in Safari Technology Preview 153 and it shows "underline" and Chrome seems to be broken in this case while Firefox seems to render it quite good but the bug mentioned in
Comment 03
is still open. Just wanted to share updated status. Thanks!
Ahmad Saleem
Comment 5
2022-09-17 03:21:13 PDT
If needed, we can try to give another try to amend mathml.css and see if there is any difference?
https://github.com/WebKit/WebKit/blob/main/Source/WebCore/css/mathml.css
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug