Skip to content

Commit eccaf6d

Browse files
feat: MathML.get/set_ID ( Fixes #9 )
1 parent 58259f2 commit eccaf6d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Types/MathML/get_ID.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#
2+
.SYNOPSIS
3+
Gets a MathML id
4+
.DESCRIPTION
5+
Gets the ID attribute on a MathML element.
6+
7+
MathML does not need to have an identifier, but it certainly can help.
8+
#>
9+
return $this.Math.id

Types/MathML/set_ID.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#
2+
.SYNOPSIS
3+
Sets a MathML id
4+
.DESCRIPTION
5+
Sets the ID attribute on a MathML element.
6+
7+
MathML does not need to have an identifier, but it certainly can help.
8+
#>
9+
$this.Math.setAttribute("id", "$args")

0 commit comments

Comments
 (0)