cdocutils.nodes document q)q}q(U nametypesq}q(X propertiesqNXmethodsqNXapi-htmlqKXthe mathjax.html objectq NXaddTextq KXElementq KX addElementq KXTextNodeq KuUsubstitution_defsq}qUparse_messagesq]qUcurrent_sourceqNU decorationqNUautofootnote_startqKUnameidsq}q(hU propertiesqhUmethodsqhUapi-htmlqh Uthe-mathjax-html-objectqh h h h h h h h uUchildrenq]q(cdocutils.nodes target q)q}q(U rawsourceq X .. _api-html:q!Uparentq"hUsourceq#cdocutils.nodes reprunicode q$XR/Data/Code/JavaScript/MathJax/Code/SourceForge/trunk/mathjax/docs/rst/api/html.rstq%q&}q'bUtagnameq(Utargetq)U attributesq*}q+(Uidsq,]q-Ubackrefsq.]q/Udupnamesq0]q1Uclassesq2]q3Unamesq4]q5Urefidq6huUlineq7KUdocumentq8hh]q9ubcdocutils.nodes section q:)q;}q<(h Uh"hh#h&Uexpect_referenced_by_nameq=}q>hhsh(Usectionq?h*}q@(h0]qAh2]qBh.]qCh,]qD(hheh4]qE(h heuh7Kh8hUexpect_referenced_by_idqF}qGhhsh]qH(cdocutils.nodes title qI)qJ}qK(h XThe MathJax.HTML ObjectqLh"h;h#h&h(UtitleqMh*}qN(h0]qOh2]qPh.]qQh,]qRh4]qSuh7Kh8hh]qTcdocutils.nodes Text qUXThe MathJax.HTML ObjectqVqW}qX(h hLh"hJubaubcdocutils.nodes paragraph qY)qZ}q[(h X@The ``MathJax.HTML`` object provides routines for creating HTML elements and adding them to the page, and int particular, it contains the code that processes MathJax's :ref:`HTML snippets ` and turns them into actual DOM objects. It also implements the methods used to manage the cookies used by MathJax.q\h"h;h#h&h(U paragraphq]h*}q^(h0]q_h2]q`h.]qah,]qbh4]qcuh7Kh8hh]qd(hUXThe qeqf}qg(h XThe qhh"hZubcdocutils.nodes literal qi)qj}qk(h X``MathJax.HTML``qlh*}qm(h0]qnh2]qoh.]qph,]qqh4]qruh"hZh]qshUX MathJax.HTMLqtqu}qv(h Uh"hjubah(UliteralqwubhUX object provides routines for creating HTML elements and adding them to the page, and int particular, it contains the code that processes MathJax's qxqy}qz(h X object provides routines for creating HTML elements and adding them to the page, and int particular, it contains the code that processes MathJax's q{h"hZubcsphinx.addnodes pending_xref q|)q}}q~(h X$:ref:`HTML snippets `qh"hZh(U pending_xrefqh*}q(UreftypeqXrefqU reftargetqX html-snippetsqU refdomainqXstdqh,]qh.]qU refexplicitqh0]qh2]qh4]qUrefdocqUapi/htmlquh7Kh]qcdocutils.nodes emphasis q)q}q(h hh*}q(h0]qh2]q(UxrefqhXstd-refqeh.]qh,]qh4]quh"h}h]qhUX HTML snippetsqq}q(h Uh"hubah(UemphasisqubaubhUXt and turns them into actual DOM objects. It also implements the methods used to manage the cookies used by MathJax.qq}q(h Xt and turns them into actual DOM objects. It also implements the methods used to manage the cookies used by MathJax.qh"hZubeubh:)q}q(h Uh"h;h#h&h(h?h*}q(h0]qh2]qh.]qh,]qhah4]qhauh7Kh8hh]q(hI)q}q(h X Propertiesqh"hh#h&h(hMh*}q(h0]qh2]qh.]qh,]qh4]quh7Kh8hh]qhUX Propertiesqq}q(h hh"hubaubcsphinx.addnodes index q)q}q(h Uh"hh#h&h(Uindexqh*}q(h,]qh.]qh0]qh2]qh4]qUentriesq]quh7Nh8hh]qubcsphinx.addnodes desc q)q}q(h Uh"hh#h&h(Udescqh*}q(Unoindexq͉UdomainqUh,]qh.]qh0]qh2]qh4]qUobjtypeqXdescribeqUdesctypeqhuh7Nh8hh]q(csphinx.addnodes desc_signature q)q}q(h XCookie.prefix: "mjx"qh"hh#h&h(Udesc_signatureqh*}q(h,]qh.]qh0]qh2]qh4]qUfirstquh7Kh8hh]qcsphinx.addnodes desc_name q)q}q(h hh"hh#h&h(U desc_nameqh*}q(h0]qh2]qh.]qh,]qh4]quh7Kh8hh]qhUXCookie.prefix: "mjx"qq}q(h Uh"hubaubaubcsphinx.addnodes desc_content q)q}q(h Uh"hh#h&h(U desc_contentqh*}q(h0]qh2]qh.]qh,]qh4]quh7Kh8hh]qhY)q}q(h X7The prefix used for names of cookies stored by MathJax.rh"hh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7Kh8hh]rhUX7The prefix used for names of cookies stored by MathJax.rr }r (h jh"hubaubaubeubh)r }r (h Uh"hh#h&h(hh*}r (h,]rh.]rh0]rh2]rh4]rUentriesr]ruh7Nh8hh]rubh)r}r(h Uh"hh#h&h(hh*}r(h͉hUh,]rh.]rh0]rh2]rh4]rhXdescriberhjuh7Nh8hh]r(h)r }r!(h XCookie.expires: 365r"h"jh#h&h(hh*}r#(h,]r$h.]r%h0]r&h2]r'h4]r(huh7Kh8hh]r)h)r*}r+(h j"h"j h#h&h(hh*}r,(h0]r-h2]r.h.]r/h,]r0h4]r1uh7Kh8hh]r2hUXCookie.expires: 365r3r4}r5(h Uh"j*ubaubaubh)r6}r7(h Uh"jh#h&h(hh*}r8(h0]r9h2]r:h.]r;h,]r<h4]r=uh7Kh8hh]r>hY)r?}r@(h X=The expiration time (in days) for cookies created by MathJax.rAh"j6h#h&h(h]h*}rB(h0]rCh2]rDh.]rEh,]rFh4]rGuh7Kh8hh]rHhUX=The expiration time (in days) for cookies created by MathJax.rIrJ}rK(h jAh"j?ubaubaubeubeubh:)rL}rM(h Uh"h;h#h&h(h?h*}rN(h0]rOh2]rPh.]rQh,]rRhah4]rShauh7Kh8hh]rT(hI)rU}rV(h XMethodsrWh"jLh#h&h(hMh*}rX(h0]rYh2]rZh.]r[h,]r\h4]r]uh7Kh8hh]r^hUXMethodsr_r`}ra(h jWh"jUubaubh)rb}rc(h Uh"jLh#Nh(hh*}rd(h,]reh.]rfh0]rgh2]rhh4]riUentriesrj]rk(UsinglerlX Element()h h trmauh7Nh8hh]rnubh)ro}rp(h Uh"jLh#Nh(hh*}rq(h͉hXpyrrh,]rsh.]rth0]ruh2]rvh4]rwhXmethodrxhjxuh7Nh8hh]ry(h)rz}r{(h X%Element(type[,attributes[,contents]])r|h"joh#h&h(hh*}r}(h,]r~h aUmodulerNh.]rh0]rh2]rh4]rh aUfullnamerh UclassrUhuh7K2h8hh]r(h)r}r(h h h"jzh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]rhUXElementrr}r(h Uh"jubaubcsphinx.addnodes desc_parameterlist r)r}r(h Uh"jzh#h&h(Udesc_parameterlistrh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]r(csphinx.addnodes desc_parameter r)r}r(h Xtyperh"jh#h&h(Udesc_parameterrh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]rhUXtyperr}r(h Uh"jubaubcsphinx.addnodes desc_optional r)r}r(h Uh"jh#h&h(U desc_optionalrh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]r(j)r}r(h X attributesrh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]rhUX attributesrr}r(h Uh"jubaubj)r}r(h Uh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]rj)r}r(h Xcontentsrh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]rhUXcontentsrr}r(h Uh"jubaubaubeubeubeubh)r}r(h Uh"joh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7K2h8hh]r(hY)r}r(h X?Creates a DOM element of the given type. If `attributes` is non-``null``, it is an object that contains `key:value` pairs of attributes to set for the newly created element. If `contents` is non-``null``, it is an :ref:`HTML snippet ` that describes the contents to create for the element. For examplerh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7Kh8hh]r(hUX-Creates a DOM element of the given type. If rr}r(h X-Creates a DOM element of the given type. If rh"jubcdocutils.nodes title_reference r)r}r(h X `attributes`rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUX attributesrr}r(h Uh"jubah(Utitle_referencerubhUX is non-rr}r(h X is non-rh"jubhi)r}r(h X``null``rh*}r(h0]r h2]r h.]r h,]r h4]r uh"jh]rhUXnullrr}r(h Uh"jubah(hwubhUX , it is an object that contains rr}r(h X , it is an object that contains rh"jubj)r}r(h X `key:value`rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUX key:valuer r!}r"(h Uh"jubah(jubhUX? pairs of attributes to set for the newly created element. If r#r$}r%(h X? pairs of attributes to set for the newly created element. If r&h"jubj)r'}r((h X `contents`r)h*}r*(h0]r+h2]r,h.]r-h,]r.h4]r/uh"jh]r0hUXcontentsr1r2}r3(h Uh"j'ubah(jubhUX is non-r4r5}r6(h X is non-r7h"jubhi)r8}r9(h X``null``r:h*}r;(h0]r<h2]r=h.]r>h,]r?h4]r@uh"jh]rAhUXnullrBrC}rD(h Uh"j8ubah(hwubhUX , it is an rErF}rG(h X , it is an rHh"jubh|)rI}rJ(h X#:ref:`HTML snippet `rKh"jh(hh*}rL(UreftyperMXrefrNhX html-snippetsrOU refdomainrPXstdrQh,]rRh.]rSU refexplicitrTh0]rUh2]rVh4]rWhhuh7Kh]rXh)rY}rZ(h jKh*}r[(h0]r\h2]r](hjQXstd-refr^eh.]r_h,]r`h4]rauh"jIh]rbhUX HTML snippetrcrd}re(h Uh"jYubah(hubaubhUXD that describes the contents to create for the element. For examplerfrg}rh(h XD that describes the contents to create for the element. For examplerih"jubeubcdocutils.nodes literal_block rj)rk}rl(h Xvar div = MathJax.HTML.Element( "div", {id: "MathDiv", style:{border:"1px solid", padding:"5px"}}, ["Here is math: $x+1$",["br"],"and a display $$x+1\\over x-1$$"] );rmh"jh#h&h(U literal_blockrnh*}ro(UlinenosrpUlanguagerqX javascriptrrU xml:spacersUpreserverth,]ruh.]rvh0]rwh2]rxh4]ryuh7K,h8hh]rzhUXvar div = MathJax.HTML.Element( "div", {id: "MathDiv", style:{border:"1px solid", padding:"5px"}}, ["Here is math: $x+1$",["br"],"and a display $$x+1\\over x-1$$"] );r{r|}r}(h Uh"jkubaubcdocutils.nodes field_list r~)r}r(h Uh"jh#Nh(U field_listrh*}r(h0]rh2]rh.]rh,]rh4]ruh7Nh8hh]r(cdocutils.nodes field r)r}r(h Uh"jh#h&h(Ufieldrh*}r(h0]rh2]rh.]rh,]rh4]ruh7K-h8hh]r(cdocutils.nodes field_name r)r}r(h X Parametersrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUX Parameters rr}r(h Uh"jubah(U field_namerubcdocutils.nodes field_body r)r}r(h X- **type** --- node type to be created - **attributes** --- object specifying attributes to set - **contents** --- HTML snippet representing contents of noderh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rcdocutils.nodes bullet_list r)r}r(h Uh*}r(UbulletrX-h,]rh.]rh0]rh2]rh4]ruh"jh]r(cdocutils.nodes list_item r)r}r(h X$**type** --- node type to be createdrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7K.h]r(cdocutils.nodes strong r)r}r(h X**type**rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXtyperr}r(h Uh"jubah(UstrongrubhUX --- node type to be createdrr}r(h X --- node type to be createdrh"jubeubah(U list_itemrubj)r}r(h X6**attributes** --- object specifying attributes to setrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7K/h]r(j)r}r(h X**attributes**rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUX attributesrr}r(h Uh"jubah(jubhUX( --- object specifying attributes to setrr}r(h X( --- object specifying attributes to setrh"jubeubah(jubj)r}r(h X;**contents** --- HTML snippet representing contents of noderh*}r(h0]r h2]r h.]r h,]r h4]r uh"jh]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7K0h]r(j)r}r(h X **contents**rh*}r(h0]rh2]rh.]rh,]rh4]r uh"jh]r!hUXcontentsr"r#}r$(h Uh"jubah(jubhUX/ --- HTML snippet representing contents of noder%r&}r'(h X/ --- HTML snippet representing contents of noder(h"jubeubah(jubeh(U bullet_listr)ubah(U field_bodyr*ubeubj)r+}r,(h Uh"jh#h&h(jh*}r-(h0]r.h2]r/h.]r0h,]r1h4]r2uh7K1h8hh]r3(j)r4}r5(h XReturnsr6h*}r7(h0]r8h2]r9h.]r:h,]r;h4]r<uh"j+h]r=hUXReturns r>r?}r@(h Uh"j4ubah(jubj)rA}rB(h Xthe DOM element createdrCh*}rD(h0]rEh2]rFh.]rGh,]rHh4]rIuh"j+h]rJhY)rK}rL(h jCh"jAh#h&h(h]h*}rM(h0]rNh2]rOh.]rPh,]rQh4]rRuh7K1h]rShUXthe DOM element createdrTrU}rV(h jCh"jKubaubah(j*ubeubeubeubeubh)rW}rX(h Uh"jLh#Nh(hh*}rY(h,]rZh.]r[h0]r\h2]r]h4]r^Uentriesr_]r`(jlX addElement()h h traauh7Nh8hh]rbubh)rc}rd(h Uh"jLh#Nh(hh*}re(h͉hXpyrfh,]rgh.]rhh0]rih2]rjh4]rkhXmethodrlhjluh7Nh8hh]rm(h)rn}ro(h X.addElement(parent,type[,attributes[,content]])rph"jch#h&h(hh*}rq(h,]rrh ajNh.]rsh0]rth2]ruh4]rvh ajh jUhuh7KAh8hh]rw(h)rx}ry(h h h"jnh#h&h(hh*}rz(h0]r{h2]r|h.]r}h,]r~h4]ruh7KAh8hh]rhUX addElementrr}r(h Uh"jxubaubj)r}r(h Uh"jnh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]r(j)r}r(h Xparentrh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]rhUXparentrr}r(h Uh"jubaubj)r}r(h Xtyperh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]rhUXtyperr}r(h Uh"jubaubj)r}r(h Uh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]r(j)r}r(h X attributesrh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]rhUX attributesrr}r(h Uh"jubaubj)r}r(h Uh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]rj)r}r(h Xcontentrh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]rhUXcontentrr}r(h Uh"jubaubaubeubeubeubh)r}r(h Uh"jch#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7KAh8hh]r(hY)r}r(h XXCreates a DOM element and appends it to the `parent` node provided. It is equivalent torh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7K5h8hh]r(hUX,Creates a DOM element and appends it to the rr}r(h X,Creates a DOM element and appends it to the rh"jubj)r}r(h X`parent`rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXparentrr}r(h Uh"jubah(jubhUX$ node provided. It is equivalent torr}r(h X$ node provided. It is equivalent torh"jubeubjj)r}r(h XAparent.appendChild(MathJax.HTML.Element(type,attributes,content))rh"jh#h&h(jnh*}r(jpjqX javascriptrjsjth,]rh.]rh0]rh2]rh4]ruh7K;h8hh]rhUXAparent.appendChild(MathJax.HTML.Element(type,attributes,content))rr}r(h Uh"jubaubj~)r }r (h Uh"jh#Nh(jh*}r (h0]r h2]r h.]rh,]rh4]ruh7Nh8hh]r(j)r}r(h Uh"j h#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7K(h0]r?h2]r@h.]rAh,]rBh4]rCuh"j2h]rDhY)rE}rF(h j=h"j;h#h&h(h]h*}rG(h0]rHh2]rIh.]rJh,]rKh4]rLuh7K=h]rM(j)rN}rO(h X **parent**rPh*}rQ(h0]rRh2]rSh.]rTh,]rUh4]rVuh"jEh]rWhUXparentrXrY}rZ(h Uh"jNubah(jubhUX- --- the node where the element will be addedr[r\}r](h X- --- the node where the element will be addedr^h"jEubeubah(jubj)r_}r`(h X6**attributes** --- object specifying attributes to setrah*}rb(h0]rch2]rdh.]reh,]rfh4]rguh"j2h]rhhY)ri}rj(h jah"j_h#h&h(h]h*}rk(h0]rlh2]rmh.]rnh,]roh4]rpuh7K>h]rq(j)rr}rs(h X**attributes**rth*}ru(h0]rvh2]rwh.]rxh,]ryh4]rzuh"jih]r{hUX attributesr|r}}r~(h Uh"jrubah(jubhUX( --- object specifying attributes to setrr}r(h X( --- object specifying attributes to setrh"jiubeubah(jubj)r}r(h X;**contents** --- HTML snippet representing contents of noderh*}r(h0]rh2]rh.]rh,]rh4]ruh"j2h]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7K?h]r(j)r}r(h X **contents**rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXcontentsrr}r(h Uh"jubah(jubhUX/ --- HTML snippet representing contents of noderr}r(h X/ --- HTML snippet representing contents of noderh"jubeubah(jubeh(j)ubah(j*ubeubj)r}r(h Uh"j h#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7K@h8hh]r(j)r}r(h XReturnsrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXReturns rr}r(h Uh"jubah(jubj)r}r(h Xthe DOM element createdrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7K@h]rhUXthe DOM element createdrr}r(h jh"jubaubah(j*ubeubeubeubeubh)r}r(h Uh"jLh#Nh(hh*}r(h,]rh.]rh0]rh2]rh4]rUentriesr]r(jlX TextNode()h h trauh7Nh8hh]rubh)r}r(h Uh"jLh#Nh(hh*}r(h͉hXpyrh,]rh.]rh0]rh2]rh4]rhXmethodrhjuh7Nh8hh]r(h)r}r(h XTextNode(text)rh"jh#h&h(hh*}r(h,]rh ajNh.]rh0]rh2]rh4]rh ajh jUhuh7KIh8hh]r(h)r}r(h h h"jh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7KIh8hh]rhUXTextNoderr}r(h Uh"jubaubj)r}r(h Uh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KIh8hh]rj)r }r (h Xtextr h"jh#h&h(jh*}r (h0]r h2]rh.]rh,]rh4]ruh7KIh8hh]rhUXtextrr}r(h Uh"j ubaubaubeubh)r}r(h Uh"jh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7KIh8hh]r(hY)r}r (h X;Creates a DOM text node with the given text as its content.r!h"jh#h&h(h]h*}r"(h0]r#h2]r$h.]r%h,]r&h4]r'uh7KDh8hh]r(hUX;Creates a DOM text node with the given text as its content.r)r*}r+(h j!h"jubaubj~)r,}r-(h Uh"jh#Nh(jh*}r.(h0]r/h2]r0h.]r1h,]r2h4]r3uh7Nh8hh]r4(j)r5}r6(h Uh"j,h#h&h(jh*}r7(h0]r8h2]r9h.]r:h,]r;h4]r<uh7KFh8hh]r=(j)r>}r?(h X Parametersr@h*}rA(h0]rBh2]rCh.]rDh,]rEh4]rFuh"j5h]rGhUX Parameters rHrI}rJ(h Uh"j>ubah(jubj)rK}rL(h X$- **text** --- the text for the noderMh*}rN(h0]rOh2]rPh.]rQh,]rRh4]rSuh"j5h]rTj)rU}rV(h Uh*}rW(jX-h,]rXh.]rYh0]rZh2]r[h4]r\uh"jKh]r]j)r^}r_(h X"**text** --- the text for the noder`h*}ra(h0]rbh2]rch.]rdh,]reh4]rfuh"jUh]rghY)rh}ri(h j`h"j^h#h&h(h]h*}rj(h0]rkh2]rlh.]rmh,]rnh4]rouh7KGh]rp(j)rq}rr(h X**text**rsh*}rt(h0]ruh2]rvh.]rwh,]rxh4]ryuh"jhh]rzhUXtextr{r|}r}(h Uh"jqubah(jubhUX --- the text for the noder~r}r(h X --- the text for the noderh"jhubeubah(jubah(j)ubah(j*ubeubj)r}r(h Uh"j,h#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KHh8hh]r(j)r}r(h XReturnsrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXReturns rr}r(h Uh"jubah(jubj)r}r(h Xthe new text noderh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7KHh]rhUXthe new text noderr}r(h jh"jubaubah(j*ubeubeubeubeubh)r}r(h Uh"jLh#Nh(hh*}r(h,]rh.]rh0]rh2]rh4]rUentriesr]r(jlX addText()h h trauh7Nh8hh]rubh)r}r(h Uh"jLh#Nh(hh*}r(h͉hXpyrh,]rh.]rh0]rh2]rh4]rhXmethodrhjuh7Nh8hh]r(h)r}r(h XaddText(parent,text)rh"jh#h&h(hh*}r(h,]rh ajNh.]rh0]rh2]rh4]rh ajh jUhuh7KSh8hh]r(h)r}r(h h h"jh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7KSh8hh]rhUXaddTextrr}r(h Uh"jubaubj)r}r(h Uh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KSh8hh]r(j)r}r(h Xparentrh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KSh8hh]rhUXparentrr}r(h Uh"jubaubj)r}r(h Xtextrh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KSh8hh]rhUXtextrr}r(h Uh"jubaubeubeubh)r}r(h Uh"jh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7KSh8hh]r(hY)r}r(h XPCreates a DOM text node with the given text and appends it to the `parent` node.r h"jh#h&h(h]h*}r (h0]r h2]r h.]r h,]rh4]ruh7KLh8hh]r(hUXBCreates a DOM text node with the given text and appends it to the rr}r(h XBCreates a DOM text node with the given text and appends it to the rh"jubj)r}r(h X`parent`rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXparentrr }r!(h Uh"jubah(jubhUX node.r"r#}r$(h X node.r%h"jubeubj~)r&}r'(h Uh"jh#Nh(jh*}r((h0]r)h2]r*h.]r+h,]r,h4]r-uh7Nh8hh]r.(j)r/}r0(h Uh"j&h#h&h(jh*}r1(h0]r2h2]r3h.]r4h,]r5h4]r6uh7KOh8hh]r7(j)r8}r9(h X Parametersr:h*}r;(h0]r<h2]r=h.]r>h,]r?h4]r@uh"j/h]rAhUX Parameters rBrC}rD(h Uh"j8ubah(jubj)rE}rF(h X_- **parent** --- the node where the text will be added - **text** --- the text for the new noderGh*}rH(h0]rIh2]rJh.]rKh,]rLh4]rMuh"j/h]rNj)rO}rP(h Uh*}rQ(jX-h,]rRh.]rSh0]rTh2]rUh4]rVuh"jEh]rW(j)rX}rY(h X4**parent** --- the node where the text will be addedrZh*}r[(h0]r\h2]r]h.]r^h,]r_h4]r`uh"jOh]rahY)rb}rc(h jZh"jXh#h&h(h]h*}rd(h0]reh2]rfh.]rgh,]rhh4]riuh7KPh]rj(j)rk}rl(h X **parent**rmh*}rn(h0]roh2]rph.]rqh,]rrh4]rsuh"jbh]rthUXparentrurv}rw(h Uh"jkubah(jubhUX* --- the node where the text will be addedrxry}rz(h X* --- the node where the text will be addedr{h"jbubeubah(jubj)r|}r}(h X&**text** --- the text for the new noder~h*}r(h0]rh2]rh.]rh,]rh4]ruh"jOh]rhY)r}r(h j~h"j|h#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7KQh]r(j)r}r(h X**text**rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXtextrr}r(h Uh"jubah(jubhUX --- the text for the new noderr}r(h X --- the text for the new noderh"jubeubah(jubeh(j)ubah(j*ubeubj)r}r(h Uh"j&h#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7KRh8hh]r(j)r}r(h XReturnsrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXReturns rr}r(h Uh"jubah(jubj)r}r(h Xthe new text noderh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7KRh]rhUXthe new text noderr}r(h jh"jubaubah(j*ubeubeubeubeubh)r}r(h Uh"jLh#Nh(hh*}r(h,]rh.]rh0]rh2]rh4]rUentriesr]ruh7Nh8hh]rubh)r}r(h Uh"jLh#Nh(hh*}r(h͉hUh,]rh.]rh0]rh2]rh4]rhXdescriberhjuh7Nh8hh]r(h)r}r(h XCookie.Set(name,data)rh"jh#h&h(hh*}r(h,]rh.]rh0]rh2]rh4]rhuh7Kgh8hh]rh)r}r(h jh"jh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7Kgh8hh]rhUXCookie.Set(name,data)rr}r(h Uh"jubaubaubh)r}r(h Uh"jh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7Kgh8hh]r(hY)r}r(h XCreates a MathJax cookie using the ``MathJax.HTML.Cookie.prefix`` and the `name` as the cookie name, and the `key:value` pairs in the `data` object as the data for the cookie. For example,rh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7KVh8hh]r (hUX#Creates a MathJax cookie using the r r }r (h X#Creates a MathJax cookie using the r h"jubhi)r}r(h X``MathJax.HTML.Cookie.prefix``rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXMathJax.HTML.Cookie.prefixrr}r(h Uh"jubah(hwubhUX and the rr}r(h X and the rh"jubj)r}r (h X`name`r!h*}r"(h0]r#h2]r$h.]r%h,]r&h4]r'uh"jh]r(hUXnamer)r*}r+(h Uh"jubah(jubhUX as the cookie name, and the r,r-}r.(h X as the cookie name, and the r/h"jubj)r0}r1(h X `key:value`r2h*}r3(h0]r4h2]r5h.]r6h,]r7h4]r8uh"jh]r9hUX key:valuer:r;}r<(h Uh"j0ubah(jubhUX pairs in the r=r>}r?(h X pairs in the r@h"jubj)rA}rB(h X`data`rCh*}rD(h0]rEh2]rFh.]rGh,]rHh4]rIuh"jh]rJhUXdatarKrL}rM(h Uh"jAubah(jubhUX1 object as the data for the cookie. For example,rNrO}rP(h X1 object as the data for the cookie. For example,rQh"jubeubjj)rR}rS(h X6MathJax.HTML.Cookie.Set("test",{x:42, y:"It Works!"});rTh"jh#h&h(jnh*}rU(jpjqX javascriptrVjsjth,]rWh.]rXh0]rYh2]rZh4]r[uh7K]h8hh]r\hUX6MathJax.HTML.Cookie.Set("test",{x:42, y:"It Works!"});r]r^}r_(h Uh"jRubaubhY)r`}ra(h Xwill create a cookie named "mjx:test" that stores the values of ``x`` and ``y`` provided in the `data` object. This data can be retrieved using the :meth:`MathJax.HTML.Cookie.Get()` method discussed below.rbh"jh#h&h(h]h*}rc(h0]rdh2]reh.]rfh,]rgh4]rhuh7K^h8hh]ri(hUX@will create a cookie named "mjx:test" that stores the values of rjrk}rl(h X@will create a cookie named "mjx:test" that stores the values of rmh"j`ubhi)rn}ro(h X``x``rph*}rq(h0]rrh2]rsh.]rth,]ruh4]rvuh"j`h]rwhUXxrx}ry(h Uh"jnubah(hwubhUX and rzr{}r|(h X and r}h"j`ubhi)r~}r(h X``y``rh*}r(h0]rh2]rh.]rh,]rh4]ruh"j`h]rhUXyr}r(h Uh"j~ubah(hwubhUX provided in the rr}r(h X provided in the rh"j`ubj)r}r(h X`data`rh*}r(h0]rh2]rh.]rh,]rh4]ruh"j`h]rhUXdatarr}r(h Uh"jubah(jubhUX/ object. This data can be retrieved using the rr}r(h X/ object. This data can be retrieved using the rh"j`ubh|)r}r(h X!:meth:`MathJax.HTML.Cookie.Get()`rh"j`h(hh*}r(UreftyperXmethrhXMathJax.HTML.Cookie.GetrU refdomainrXpyrh,]rh.]rU refexplicitrh0]rh2]rh4]rhhUpy:classrNU py:modulerNuh7K^h]rhi)r}r(h jh*}r(h0]rh2]r(hjXpy-methreh.]rh,]rh4]ruh"jh]rhUXMathJax.HTML.Cookie.Get()rr}r(h Uh"jubah(hwubaubhUX method discussed below.rr}r(h X method discussed below.rh"j`ubeubj~)r}r(h Uh"jh#Nh(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7Nh8hh]r(j)r}r(h Uh"jh#h&h(jh*}r(h0]rh2]rh.]rh,]rh4]ruh7Kch8hh]r(j)r}r(h X Parametersrh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUX Parameters rr}r(h Uh"jubah(jubj)r}r(h Xt- **name** --- the name that identifies the coookie - **data** --- object containing the data to store in the cookierh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rj)r}r(h Uh*}r(jX-h,]rh.]rh0]rh2]rh4]ruh"jh]r(j)r}r(h X1**name** --- the name that identifies the coookierh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhY)r}r(h jh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7Kdh]r(j)r}r(h X**name**r h*}r (h0]r h2]r h.]r h,]rh4]ruh"jh]rhUXnamerr}r(h Uh"jubah(jubhUX) --- the name that identifies the coookierr}r(h X) --- the name that identifies the coookierh"jubeubah(jubj)r}r(h X>**data** --- object containing the data to store in the cookierh*}r(h0]rh2]rh.]rh,]rh4]r uh"jh]r!hY)r"}r#(h jh"jh#h&h(h]h*}r$(h0]r%h2]r&h.]r'h,]r(h4]r)uh7Keh]r*(j)r+}r,(h X**data**r-h*}r.(h0]r/h2]r0h.]r1h,]r2h4]r3uh"j"h]r4hUXdatar5r6}r7(h Uh"j+ubah(jubhUX6 --- object containing the data to store in the cookier8r9}r:(h X6 --- object containing the data to store in the cookier;h"j"ubeubah(jubeh(j)ubah(j*ubeubj)r<}r=(h Uh"jh#h&h(jh*}r>(h0]r?h2]r@h.]rAh,]rBh4]rCuh7Kfh8hh]rD(j)rE}rF(h XReturnsrGh*}rH(h0]rIh2]rJh.]rKh,]rLh4]rMuh"j<h]rNhUXReturns rOrP}rQ(h Uh"jEubah(jubj)rR}rS(h X``null``rTh*}rU(h0]rVh2]rWh.]rXh,]rYh4]rZuh"j<h]r[hY)r\}r](h jTh"jRh#h&h(h]h*}r^(h0]r_h2]r`h.]rah,]rbh4]rcuh7Kfh]rdhi)re}rf(h jTh*}rg(h0]rhh2]rih.]rjh,]rkh4]rluh"j\h]rmhUXnullrnro}rp(h Uh"jeubah(hwubaubah(j*ubeubeubeubeubh)rq}rr(h Uh"jLh#h&h(hh*}rs(h,]rth.]ruh0]rvh2]rwh4]rxUentriesry]rzuh7Nh8hh]r{ubh)r|}r}(h Uh"jLh#h&h(hh*}r~(h͉hUh,]rh.]rh0]rh2]rh4]rhXdescriberhjuh7Nh8hh]r(h)r}r(h XCookie.Get(name[,obj])rh"j|h#h&h(hh*}r(h,]rh.]rh0]rh2]rh4]rhuh7Kzh8hh]rh)r}r(h jh"jh#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7Kzh8hh]rhUXCookie.Get(name[,obj])rr}r(h Uh"jubaubaubh)r}r(h Uh"j|h#h&h(hh*}r(h0]rh2]rh.]rh,]rh4]ruh7Kzh8hh]r(hY)r}r(h XLooks up the data for the cookie named `name` and merges the data into the given `obj` object, or returns a new object containing the data. For instance, given the cookie stored by the example above,rh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7Kjh8hh]r(hUX'Looks up the data for the cookie named rr}r(h X'Looks up the data for the cookie named rh"jubj)r}r(h X`name`rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXnamerr}r(h Uh"jubah(jubhUX$ and merges the data into the given rr}r(h X$ and merges the data into the given rh"jubj)r}r(h X`obj`rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXobjrr}r(h Uh"jubah(jubhUXr object, or returns a new object containing the data. For instance, given the cookie stored by the example above,rr}r(h Xr object, or returns a new object containing the data. For instance, given the cookie stored by the example above,rh"jubeubjj)r}r(h X+var data = MathJax.HTML.Cookie.Get("test");rh"jh#h&h(jnh*}r(jpjqX javascriptrjsjth,]rh.]rh0]rh2]rh4]ruh7Krh8hh]rhUX+var data = MathJax.HTML.Cookie.Get("test");rr}r(h Uh"jubaubhY)r}r(h X6would set ``data`` to ``{x:42, y:"It Works!"}``, whilerh"jh#h&h(h]h*}r(h0]rh2]rh.]rh,]rh4]ruh7Ksh8hh]r(hUX would set rr}r(h X would set rh"jubhi)r}r(h X``data``rh*}r(h0]rh2]rh.]rh,]rh4]ruh"jh]rhUXdatarr}r(h Uh"jubah(hwubhUX to rr}r (h X to r h"jubhi)r }r (h X``{x:42, y:"It Works!"}``r h*}r (h0]r h2]r h.]r h,]r h4]r uh"jh]r hUX{x:42, y:"It Works!"}r r }r (h Uh"j ubah(hwubhUX, whiler r }r (h X, whiler h"jubeubjj)r }r (h XBvar data = {x:10, z:"Safe"}; MathJax.HTML.Cookie.Get("test",data);r h"jh#h&h(jnh*}r (jpjqX javascriptr jsjth,]r h.]r h0]r h2]r h4]r uh7Kyh8hh]r hUXBvar data = {x:10, z:"Safe"}; MathJax.HTML.Cookie.Get("test",data);r r }r (h Uh"j ubaubhY)r! }r" (h X<would leave ``data`` as ``{x:42, y:"It Works!", z:"Safe"}``.r# h"jh#h&h(h]h*}r$ (h0]r% h2]r& h.]r' h,]r( h4]r) uh7Kzh8hh]r* (hUX would leave r+ r, }r- (h X would leave r. h"j! ubhi)r/ }r0 (h X``data``r1 h*}r2 (h0]r3 h2]r4 h.]r5 h,]r6 h4]r7 uh"j! h]r8 hUXdatar9 r: }r; (h Uh"j/ ubah(hwubhUX as r< r= }r> (h X as r? h"j! ubhi)r@ }rA (h X#``{x:42, y:"It Works!", z:"Safe"}``rB h*}rC (h0]rD h2]rE h.]rF h,]rG h4]rH uh"j! h]rI hUX{x:42, y:"It Works!", z:"Safe"}rJ rK }rL (h Uh"j@ ubah(hwubhUX.rM }rN (h X.h"j! ubeubeubeubeubeubeh UU transformerrO NU footnote_refsrP }rQ UrefnamesrR }rS Usymbol_footnotesrT ]rU Uautofootnote_refsrV ]rW Usymbol_footnote_refsrX ]rY U citationsrZ ]r[ h8hU current_liner\ NUtransform_messagesr] ]r^ cdocutils.nodes system_message r_ )r` }ra (h Uh*}rb (h0]rc Ulevelrd Kh,]re h.]rf Usourcerg h&h2]rh h4]ri Ulinerj KUtyperk UINFOrl uh]rm hY)rn }ro (h Uh*}rp (h0]rq h2]rr h.]rs h,]rt h4]ru uh"j` h]rv hUX.Hyperlink target "api-html" is not referenced.rw rx }ry (h Uh"jn ubah(h]ubah(Usystem_messagerz ubaUreporterr{ NUid_startr| KU autofootnotesr} ]r~ U citation_refsr }r Uindirect_targetsr ]r Usettingsr (cdocutils.frontend Values r or }r (Ufootnote_backlinksr KUrecord_dependenciesr NU rfc_base_urlr Uhttp://tools.ietf.org/html/r U tracebackr KUpep_referencesr NUstrip_commentsr NU toc_backlinksr Uentryr U language_coder Uenr U datestampr NU report_levelr KU _destinationr NU halt_levelr KU strip_classesr NhMNUerror_encoding_error_handlerr Ubackslashreplacer Udebugr NUembed_stylesheetr Uoutput_encoding_error_handlerr Ustrictr U sectnum_xformr KUdump_transformsr NU docinfo_xformr KUwarning_streamr NUpep_file_url_templater Upep-%04dr Uexit_status_levelr KUconfigr NUstrict_visitorr NUcloak_email_addressesr Utrim_footnote_reference_spacer Uenvr NUdump_pseudo_xmlr NUexpose_internalsr NUsectsubtitle_xformr U source_linkr NUrfc_referencesr NUoutput_encodingr Uutf-8r U source_urlr NUinput_encodingr U utf-8-sigr U_disable_configr NU id_prefixr UU tab_widthr KUerror_encodingr UUTF-8r U_sourcer UR/Data/Code/JavaScript/MathJax/Code/SourceForge/trunk/mathjax/docs/rst/api/html.rstr U generatorr NUdump_internalsr NU pep_base_urlr Uhttp://www.python.org/dev/peps/r Uinput_encoding_error_handlerr j Uauto_id_prefixr Uidr Udoctitle_xformr Ustrip_elements_with_classesr NU _config_filesr ]r Ufile_insertion_enabledr KU raw_enabledr KU dump_settingsr NubUsymbol_footnote_startr KUidsr }r (hhhjLhh;h jh jzhh;h jnh juUsubstitution_namesr }r h(h8h*}r (h0]r h,]r h.]r Usourcer h&h2]r h4]r uU footnotesr ]r Urefidsr }r h]r hasub.