Skip to content

Commit e01e774

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: MathML.get/set_ID ( Fixes #9 )
1 parent eccaf6d commit e01e774

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

MathML.types.ps1xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,31 @@
1010

1111
</Script>
1212
</ScriptMethod>
13+
<ScriptProperty>
14+
<Name>ID</Name>
15+
<GetScriptBlock>
16+
&lt;#
17+
.SYNOPSIS
18+
Gets a MathML id
19+
.DESCRIPTION
20+
Gets the ID attribute on a MathML element.
21+
22+
MathML does not need to have an identifier, but it certainly can help.
23+
#&gt;
24+
return $this.Math.id
25+
</GetScriptBlock>
26+
<SetScriptBlock>
27+
&lt;#
28+
.SYNOPSIS
29+
Sets a MathML id
30+
.DESCRIPTION
31+
Sets the ID attribute on a MathML element.
32+
33+
MathML does not need to have an identifier, but it certainly can help.
34+
#&gt;
35+
$this.Math.setAttribute("id", "$args")
36+
</SetScriptBlock>
37+
</ScriptProperty>
1338
<ScriptProperty>
1439
<Name>SVG</Name>
1540
<GetScriptBlock>

0 commit comments

Comments
 (0)