-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal for MathML base class #858
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
A couple questions, perhaps more to the scalajs-dom maintainers:
MDN says the style
property is defined for both HTML, SVG, and MathML elements, but in scalajs-dom interfaces, it's only defined for HTML elements. Unless there's a known reason for that, I think it should be defined for SVG (and now MathML) elements as well.
I'm also wondering why event props like onclick / onmouseover / etc. are defined in HTML and SVG element classes in scalajs-dom – MDN does not mention anything HTML or SVG specific about most of those events (example). I guess it's ok for MathML to follow this pattern for now, but shouldn't most of those event properties (that apply to all elements) be moved into the parent Element class?
I've updated the two direct pieces of feedback - thankyou 🙏 |
Just checking in - anything else I could do to nudge this forward? |
I do not know why it has been done like that, I'm not against this change however. As for this PR, thank you! TIL about the MathML spec. |
I think you are absolutely right. I'll try to add it. I think I got the |
@zetashift done I believe. Thanks for the pointer 🙏 |
Co-authored-by: zetashift <[email protected]>
Co-authored-by: zetashift <[email protected]>
Co-authored-by: zetashift <[email protected]>
Just checking in? Anything else I can do? |
Sorry! This looks good to me! |
@raquo I assume, that I also need to add the concrete mathML instances, before we can take advantage of it downstream? I'm planning to do that in a separate PR to keep this one small... |
@Quafadas Well, there are levels to this. If we just have a single FTR, I don't actually know how many of such subclass-specific properties MathML elements have. |
@raquo Thanks for the note. I think what I'm proposing is that once this gets merged, I'll follow it straight up with another PR that puts up a complete list of the concrete elements. Based on what you've said II think my proposal would be to be quite diligent on the top level Does that sounds sensible? |
@Quafadas Thanks, sounds good to me, just keep in mind that you want to look at the From what I see on MDN, it seems that the root |
@zetashift Is there a remaining barrier to merging? |
Thank you! |
@zetashift Mostly thank you in fact :-)! |
sbt prePR
[x]api-reports
[x]This proposes a base class for MathML elements.
If it gets merged / agreed, I'd propose to follow it up with concrete elements following the style of the SVG elements, and the documentation here;
https://developer.mozilla.org/en-US/docs/Web/MathML
Related;
cc @raquo