From 4a7cb1f867fe6b7cd624c9288189ee94c5451993 Mon Sep 17 00:00:00 2001 From: Brian Kardell Date: Tue, 11 Feb 2020 10:01:05 -0500 Subject: [PATCH 1/2] add MathMLLinkableElement.idl --- webidl/MathMLLinkableElement.idl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 webidl/MathMLLinkableElement.idl diff --git a/webidl/MathMLLinkableElement.idl b/webidl/MathMLLinkableElement.idl new file mode 100644 index 0000000..26335d8 --- /dev/null +++ b/webidl/MathMLLinkableElement.idl @@ -0,0 +1,16 @@ +[Exposed=Window] +interface MathMLLinkableElement : MathMLElement { + [CEReactions] attribute DOMString target; + [CEReactions] attribute DOMString download; + [CEReactions] attribute USVString ping; + [CEReactions] attribute DOMString rel; + [SameObject, PutForwards=value] readonly attribute DOMTokenList relList; + [CEReactions] attribute DOMString hreflang; + [CEReactions] attribute DOMString type; + + [CEReactions] attribute DOMString text; + + [CEReactions] attribute DOMString referrerPolicy; + }; + + MathMLElement includes HTMLHyperlinkElementUtils; \ No newline at end of file From e1021b1dc53baf53758dd8926a23617608aa2849 Mon Sep 17 00:00:00 2001 From: Brian Kardell Date: Tue, 11 Feb 2020 10:01:25 -0500 Subject: [PATCH 2/2] edits for linking --- index.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 3a42ce8..bf826ca 100644 --- a/index.html +++ b/index.html @@ -291,6 +291,10 @@

DOM and Javascript

ElementCSSInlineStyle interface is defined in [[CSSOM]].

+

+ All of the nodes representing MathML Hyperlink Elements in the DOM must implement, and expose to scripts the following MathMLLinkableElement interface. +

+

         
         

Text layout

@@ -320,9 +324,7 @@

Focus

apply, as defined in that specification.

- Any MathML elements containing an href attribute are valid links - and are focusable. Their tabindex focus flag - must be set unless the user agent normally provides an alternative + All MathMLLinkableElement elements are potentially linkable with an href attribute. Their default tabindex is 0. If their href contains a valid URL, their focus flag must be set unless the user agent normally provides an alternative method of keyboard traversal of links, and they appear in the sequential focus order.

@@ -396,7 +398,6 @@

Global Attributes

  • id
  • class
  • style
  • -
  • href
  • dir
  • mathbackground
  • mathcolor
  • @@ -639,6 +640,10 @@

    The Top-Level <math> Element

    respectively.
    +
    +

    MathML Hyperlink Elements

    +

    All token elements and the mrow grouping element are potentially linkable and may contain an href attribute. They are the MathML equivalents of HTML's a and must follow all of the same criteria laid out for links there.

    +

    Presentation Markup