diff options
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaxml/luaxml.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luaxml/luaxml.tex | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaxml/luaxml.tex b/Master/texmf-dist/doc/luatex/luaxml/luaxml.tex index 3b451fdb630..d641b91aad9 100644 --- a/Master/texmf-dist/doc/luatex/luaxml/luaxml.tex +++ b/Master/texmf-dist/doc/luatex/luaxml/luaxml.tex @@ -7,7 +7,7 @@ \usepackage{framed} % Version is defined in the makefile, use default values when compiled directly \ifdefined\version\else -\def\version{0.1l} +\def\version{v0.1m} \let\gitdate\date \fi \newcommand\modulename[1]{\subsection{#1}\label{sec:#1}} @@ -99,6 +99,22 @@ end \end{luacode*} \end{framed} +\subsection{Void elements} + +The \verb|DOM_Object.parse| function tries to support the HTML void elements, +such as \verb|<img>| or \verb|<hr>|. They cannot have closing tags, a parse +error occurs when the closing tags are used. + +It is possible to define a different set of void elements using the second parameter +for \verb|DOM_Object.parse|: + +\begin{verbatim} +obj = dom.parse(document, {custom_void = true}) +\end{verbatim} + +An empty table will disable all void elements. This setting is recommended for common |xml| documents. + + \subsection{Node selection methods} There are some other methods for element retrieving. |