diff --git a/index.html b/index.html index 164bf78..0545c3a 100644 --- a/index.html +++ b/index.html @@ -351,6 +351,10 @@

The Top-Level <math> Element


         
+        
+

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.

+

Types for MathML Attribute Values

@@ -422,6 +426,17 @@

Attributes common to HTML and MathML elements

tabindex attributes on HTML elements.

+

+ The + href + attribute has the same syntax and semantic as defined for + the href attribute on + <a> element. + To fully implement this attribute, the following CSS properties for + links must be specified in the + user agent stylesheet: +

+

           

The dir @@ -821,6 +836,10 @@

DOM and Javascript

data-include-format="text"> dom-idl example +

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

+

           
Specialize unknown MathML elements to a MathMLUnknownElement interface?
Rename @@ -858,6 +877,11 @@

Focus

CSS Selectors apply, as defined in that specification.

+

+ 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. +

The contents of embedded <math> elements (including HTML elements inside token elements), @@ -5457,6 +5481,8 @@

User Agent Stylesheet

/* Default display */ +/* Links */ + /* The <math> element */ /* <mrow>-like elements */ @@ -5470,6 +5496,7 @@

User Agent Stylesheet

/* Other rules for scriptlevel, displaystyle and math-shift */ +
Improve rules for href hyperlinks and focusable elements?

Operator Tables

@@ -5866,10 +5893,21 @@

Privacy and Security Considerations

DOMException when one tries to access the canvas' content via JavaScript APIs.

+

+ This specification adds an href attribute that + can be used to make MathML elements match + :link and + :visited pseudo-classes and one could rely on + these features to determine whether a link has been visited. + UAs may implement suggestions from [[SELECT]] to preserve the + user's privacy. +

This specification only adds script execution mechanisms in the the MathML event handler attributes described in - . UAs may decide to apply the same + and + in javascript:... links for the href + attribute. UAs may decide to apply the same security restrictions as HTML and SVG to prevent execution of scripts in these attributes.

diff --git a/user-agent-stylesheet/links.css b/user-agent-stylesheet/links.css new file mode 100644 index 0000000..ca1fab0 --- /dev/null +++ b/user-agent-stylesheet/links.css @@ -0,0 +1,4 @@ +:any-link { + color: blue; + text-decoration: none; +} diff --git a/webidl/MathMLLinkableElement.idl b/webidl/MathMLLinkableElement.idl new file mode 100644 index 0000000..e5577e8 --- /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;