-
Notifications
You must be signed in to change notification settings - Fork 15
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
Proposed changes for linking and tabindexing #21
Conversation
[CEReactions] attribute DOMString hreflang; | ||
[CEReactions] attribute DOMString type; | ||
|
||
[CEReactions] attribute DOMString text; |
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.
what is this? Alt text?
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.
from a
in HTML..
a . text
Same as textContent.
@@ -0,0 +1,16 @@ | |||
[Exposed=Window] | |||
interface MathMLLinkableElement : MathMLElement { | |||
[CEReactions] attribute DOMString target; |
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.
It seems like this should closely follow:
https://html.spec.whatwg.org/#the-link-element.
So then href may be better?
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.
based on https://html.spec.whatwg.org/#the-a-element, not link
[Exposed=Window] | ||
interface MathMLLinkableElement : MathMLElement { | ||
[CEReactions] attribute DOMString target; | ||
[CEReactions] attribute DOMString download; |
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.
Where does this come from?
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.
Ah, you are following https://html.spec.whatwg.org/#the-a-element.
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.
The idl looks ok to me because it mirrors https://html.spec.whatwg.org/#htmlanchorelement.
The text property seems superflous because textContent would be similar? But I guess if it is good enough for it is good enough for MathML.
Only thing you may want to add is a constructor.
Since there is no concrete element here, I think we don't want to add that. It is, effectively, an abstract base class, basically? |
Feel free to reject this, just trying to highlight what I think we need and where for discussion re https://github.com/mathml-refresh/mathml/issues/125 and to unblock answers for https://github.com/mathml-refresh/mathml/issues/152...