@@ -109,7 +109,7 @@ in memory and a corresponding decrease in performance over time.
109109To deal with changing content, MathJax provides a function that tells
110110it to forget about math that it has previously typeset:
111111
112- .. js :function :: MathJax .typsetClear (elements)
112+ .. js :function :: MathJax .typesetClear (elements)
113113
114114 :param HTMLElement[] elements: An optional array of HTML elements
115115 whose typeset math is to be
@@ -200,8 +200,8 @@ on every change the the input area. This example uses the HTML that
200200the user enters, updates an output area using that, and calls MathJax
201201to process the expressions it contains. Of course, in practice, you
202202would want to sanitize the user input to prevent the user from
203- entering maliceous code, so this is just the bare-bones version meant
204- to highlight how to handle the MathJax update portion of the erditor
203+ entering malicious code, so this is just the bare-bones version meant
204+ to highlight how to handle the MathJax update portion of the editor
205205tasks.
206206
207207The details are discussed after the code listing below.
@@ -371,7 +371,7 @@ updates are requested while MathJax is running.
371371
372372Line 66 tells MathJax to forget about any mathematics that was
373373previously typeset in the preview area. Without this, MathJax's list
374- of typeet math would grow with each character typed, as it holds onto
374+ of typeset math would grow with each character typed, as it holds onto
375375all the previous copies of the math that it had typeset in the past.
376376This call must come before the DOM is changed, so that MathJax can
377377tell which math is inside the material being removed.
0 commit comments