package tidy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type nodeType =
  1. | Node_Root
  2. | Node_DocType
  3. | Node_Comment
  4. | Node_ProcIns
  5. | Node_Text
  6. | Node_Start
  7. | Node_End
  8. | Node_StartEnd
  9. | Node_CDATA
  10. | Node_Section
  11. | Node_Asp
  12. | Node_Jste
  13. | Node_Php
  14. | Node_XmlDecl
type tagId =
  1. | Tag_UNKNOWN
  2. | Tag_A
  3. | Tag_ABBR
  4. | Tag_ACRONYM
  5. | Tag_ADDRESS
  6. | Tag_ALIGN
  7. | Tag_APPLET
  8. | Tag_AREA
  9. | Tag_B
  10. | Tag_BASE
  11. | Tag_BASEFONT
  12. | Tag_BDO
  13. | Tag_BGSOUND
  14. | Tag_BIG
  15. | Tag_BLOCKQUOTE
  16. | Tag_BODY
  17. | Tag_BR
  18. | Tag_BUTTON
  19. | Tag_CAPTION
  20. | Tag_CENTER
  21. | Tag_CITE
  22. | Tag_CODE
  23. | Tag_COL
  24. | Tag_COLGROUP
  25. | Tag_COMMENT
  26. | Tag_DD
  27. | Tag_DEL
  28. | Tag_DFN
  29. | Tag_DIR
  30. | Tag_DIV
  31. | Tag_DL
  32. | Tag_DT
  33. | Tag_EM
  34. | Tag_EMBED
  35. | Tag_FIELDSET
  36. | Tag_FONT
  37. | Tag_FORM
  38. | Tag_FRAME
  39. | Tag_FRAMESET
  40. | Tag_H1
  41. | Tag_H2
  42. | Tag_H3
  43. | Tag_H4
  44. | Tag_H5
  45. | Tag_H6
  46. | Tag_HEAD
  47. | Tag_HR
  48. | Tag_HTML
  49. | Tag_I
  50. | Tag_IFRAME
  51. | Tag_ILAYER
  52. | Tag_IMG
  53. | Tag_INPUT
  54. | Tag_INS
  55. | Tag_ISINDEX
  56. | Tag_KBD
  57. | Tag_KEYGEN
  58. | Tag_LABEL
  59. | Tag_LAYER
  60. | Tag_LEGEND
  61. | Tag_LI
  62. | Tag_LISTING
  63. | Tag_MAP
  64. | Tag_MATHML
  65. | Tag_MARQUEE
  66. | Tag_MENU
  67. | Tag_META
  68. | Tag_MULTICOL
  69. | Tag_NOBR
  70. | Tag_NOEMBED
  71. | Tag_NOFRAMES
  72. | Tag_NOLAYER
  73. | Tag_NOSAVE
  74. | Tag_NOSCRIPT
  75. | Tag_OBJECT
  76. | Tag_OL
  77. | Tag_OPTGROUP
  78. | Tag_OPTION
  79. | Tag_P
  80. | Tag_PARAM
  81. | Tag_PICTURE
  82. | Tag_PLAINTEXT
  83. | Tag_PRE
  84. | Tag_Q
  85. | Tag_RB
  86. | Tag_RBC
  87. | Tag_RP
  88. | Tag_RT
  89. | Tag_RTC
  90. | Tag_RUBY
  91. | Tag_S
  92. | Tag_SAMP
  93. | Tag_SCRIPT
  94. | Tag_SELECT
  95. | Tag_SERVER
  96. | Tag_SERVLET
  97. | Tag_SMALL
  98. | Tag_SPACER
  99. | Tag_SPAN
  100. | Tag_STRIKE
  101. | Tag_STRONG
  102. | Tag_STYLE
  103. | Tag_SUB
  104. | Tag_SUP
  105. | Tag_SVG
  106. | Tag_TABLE
  107. | Tag_TBODY
  108. | Tag_TD
  109. | Tag_TEXTAREA
  110. | Tag_TFOOT
  111. | Tag_TH
  112. | Tag_THEAD
  113. | Tag_TITLE
  114. | Tag_TR
  115. | Tag_TT
  116. | Tag_U
  117. | Tag_UL
  118. | Tag_VAR
  119. | Tag_WBR
  120. | Tag_XMP
  121. | Tag_NEXTID
  122. | Tag_ARTICLE
  123. | Tag_ASIDE
  124. | Tag_AUDIO
  125. | Tag_BDI
  126. | Tag_CANVAS
  127. | Tag_COMMAND
  128. | Tag_DATALIST
  129. | Tag_DETAILS
  130. | Tag_DIALOG
  131. | Tag_FIGCAPTION
  132. | Tag_FIGURE
  133. | Tag_HEADER
  134. | Tag_HGROUP
  135. | Tag_MAIN
  136. | Tag_MARK
  137. | Tag_MENUITEM
  138. | Tag_METER
  139. | Tag_NAV
  140. | Tag_OUTPUT
  141. | Tag_PROGRESS
  142. | Tag_SECTION
  143. | Tag_SOURCE
  144. | Tag_SUMMARY
  145. | Tag_TEMPLATE
  146. | Tag_TIME
  147. | Tag_TRACK
  148. | Tag_VIDEO
  149. | N_TIDY_TAGS
type attrId =
  1. | Attr_UNKNOWN
  2. | Attr_ABBR
  3. | Attr_ACCEPT
  4. | Attr_ACCEPT_CHARSET
  5. | Attr_ACCESSKEY
  6. | Attr_ACTION
  7. | Attr_ADD_DATE
  8. | Attr_ALIGN
  9. | Attr_ALT
  10. | Attr_ARCHIVE
  11. | Attr_AXIS
  12. | Attr_BACKGROUND
  13. | Attr_BGCOLOR
  14. | Attr_BGPROPERTIES
  15. | Attr_BORDER
  16. | Attr_BORDERCOLOR
  17. | Attr_BOTTOMMARGIN
  18. | Attr_CELLPADDING
  19. | Attr_CELLSPACING
  20. | Attr_CHAR
  21. | Attr_CHAROFF
  22. | Attr_CHARSET
  23. | Attr_CHECKED
  24. | Attr_CITE
  25. | Attr_CLASS
  26. | Attr_CLASSID
  27. | Attr_CLEAR
  28. | Attr_CODE
  29. | Attr_CODEBASE
  30. | Attr_CODETYPE
  31. | Attr_COLOR
  32. | Attr_COLS
  33. | Attr_COLSPAN
  34. | Attr_COMPACT
  35. | Attr_CONTENT
  36. | Attr_COORDS
  37. | Attr_DATA
  38. | Attr_DATAFLD
  39. | Attr_DATAFORMATAS
  40. | Attr_DATAPAGESIZE
  41. | Attr_DATASRC
  42. | Attr_DATETIME
  43. | Attr_DECLARE
  44. | Attr_DEFER
  45. | Attr_DIR
  46. | Attr_DISABLED
  47. | Attr_ENCODING
  48. | Attr_ENCTYPE
  49. | Attr_FACE
  50. | Attr_FOR
  51. | Attr_FRAME
  52. | Attr_FRAMEBORDER
  53. | Attr_FRAMESPACING
  54. | Attr_GRIDX
  55. | Attr_GRIDY
  56. | Attr_HEADERS
  57. | Attr_HEIGHT
  58. | Attr_HREF
  59. | Attr_HREFLANG
  60. | Attr_HSPACE
  61. | Attr_HTTP_EQUIV
  62. | Attr_ID
  63. | Attr_ISMAP
  64. | Attr_ITEMID
  65. | Attr_ITEMPROP
  66. | Attr_ITEMREF
  67. | Attr_ITEMSCOPE
  68. | Attr_ITEMTYPE
  69. | Attr_LABEL
  70. | Attr_LANG
  71. | Attr_LANGUAGE
  72. | Attr_LAST_MODIFIED
  73. | Attr_LAST_VISIT
  74. | Attr_LEFTMARGIN
  75. | Attr_LONGDESC
  76. | Attr_LOWSRC
  77. | Attr_MARGINHEIGHT
  78. | Attr_MARGINWIDTH
  79. | Attr_MAXLENGTH
  80. | Attr_MEDIA
  81. | Attr_METHOD
  82. | Attr_MULTIPLE
  83. | Attr_NAME
  84. | Attr_NOHREF
  85. | Attr_NORESIZE
  86. | Attr_NOSHADE
  87. | Attr_NOWRAP
  88. | Attr_OBJECT
  89. | Attr_OnAFTERUPDATE
  90. | Attr_OnBEFOREUNLOAD
  91. | Attr_OnBEFOREUPDATE
  92. | Attr_OnBLUR
  93. | Attr_OnCHANGE
  94. | Attr_OnCLICK
  95. | Attr_OnDATAAVAILABLE
  96. | Attr_OnDATASETCHANGED
  97. | Attr_OnDATASETCOMPLETE
  98. | Attr_OnDBLCLICK
  99. | Attr_OnERRORUPDATE
  100. | Attr_OnFOCUS
  101. | Attr_OnKEYDOWN
  102. | Attr_OnKEYPRESS
  103. | Attr_OnKEYUP
  104. | Attr_OnLOAD
  105. | Attr_OnMOUSEDOWN
  106. | Attr_OnMOUSEMOVE
  107. | Attr_OnMOUSEOUT
  108. | Attr_OnMOUSEOVER
  109. | Attr_OnMOUSEUP
  110. | Attr_OnRESET
  111. | Attr_OnROWENTER
  112. | Attr_OnROWEXIT
  113. | Attr_OnSELECT
  114. | Attr_OnSUBMIT
  115. | Attr_OnUNLOAD
  116. | Attr_PROFILE
  117. | Attr_PROMPT
  118. | Attr_RBSPAN
  119. | Attr_READONLY
  120. | Attr_REL
  121. | Attr_REV
  122. | Attr_RIGHTMARGIN
  123. | Attr_ROLE
  124. | Attr_ROWS
  125. | Attr_ROWSPAN
  126. | Attr_RULES
  127. | Attr_SCHEME
  128. | Attr_SCOPE
  129. | Attr_SCROLLING
  130. | Attr_SELECTED
  131. | Attr_SHAPE
  132. | Attr_SHOWGRID
  133. | Attr_SHOWGRIDX
  134. | Attr_SHOWGRIDY
  135. | Attr_SIZE
  136. | Attr_SPAN
  137. | Attr_SRC
  138. | Attr_SRCSET
  139. | Attr_STANDBY
  140. | Attr_START
  141. | Attr_STYLE
  142. | Attr_SUMMARY
  143. | Attr_TABINDEX
  144. | Attr_TARGET
  145. | Attr_TEXT
  146. | Attr_TITLE
  147. | Attr_TOPMARGIN
  148. | Attr_TYPE
  149. | Attr_USEMAP
  150. | Attr_VALIGN
  151. | Attr_VALUE
  152. | Attr_VALUETYPE
  153. | Attr_VERSION
  154. | Attr_VSPACE
  155. | Attr_WIDTH
  156. | Attr_WRAP
  157. | Attr_XML_LANG
  158. | Attr_XML_SPACE
  159. | Attr_XMLNS
  160. | Attr_EVENT
  161. | Attr_METHODS
  162. | Attr_N
  163. | Attr_SDAFORM
  164. | Attr_SDAPREF
  165. | Attr_SDASUFF
  166. | Attr_URN
  167. | Attr_ASYNC
  168. | Attr_AUTOCOMPLETE
  169. | Attr_AUTOFOCUS
  170. | Attr_AUTOPLAY
  171. | Attr_CHALLENGE
  172. | Attr_CONTENTEDITABLE
  173. | Attr_CONTEXTMENU
  174. | Attr_CONTROLS
  175. | Attr_DEFAULT
  176. | Attr_DIRNAME
  177. | Attr_DRAGGABLE
  178. | Attr_DROPZONE
  179. | Attr_FORM
  180. | Attr_FORMACTION
  181. | Attr_FORMENCTYPE
  182. | Attr_FORMMETHOD
  183. | Attr_FORMNOVALIDATE
  184. | Attr_FORMTARGET
  185. | Attr_HIDDEN
  186. | Attr_HIGH
  187. | Attr_ICON
  188. | Attr_KEYTYPE
  189. | Attr_KIND
  190. | Attr_LIST
  191. | Attr_LOOP
  192. | Attr_LOW
  193. | Attr_MANIFEST
  194. | Attr_MAX
  195. | Attr_MEDIAGROUP
  196. | Attr_MIN
  197. | Attr_NOVALIDATE
  198. | Attr_OPEN
  199. | Attr_OPTIMUM
  200. | Attr_OnABORT
  201. | Attr_OnAFTERPRINT
  202. | Attr_OnBEFOREPRINT
  203. | Attr_OnCANPLAY
  204. | Attr_OnCANPLAYTHROUGH
  205. | Attr_OnCONTEXTMENU
  206. | Attr_OnCUECHANGE
  207. | Attr_OnDRAG
  208. | Attr_OnDRAGEND
  209. | Attr_OnDRAGENTER
  210. | Attr_OnDRAGLEAVE
  211. | Attr_OnDRAGOVER
  212. | Attr_OnDRAGSTART
  213. | Attr_OnDROP
  214. | Attr_OnDURATIONCHANGE
  215. | Attr_OnEMPTIED
  216. | Attr_OnENDED
  217. | Attr_OnERROR
  218. | Attr_OnHASHCHANGE
  219. | Attr_OnINPUT
  220. | Attr_OnINVALID
  221. | Attr_OnLOADEDDATA
  222. | Attr_OnLOADEDMETADATA
  223. | Attr_OnLOADSTART
  224. | Attr_OnMESSAGE
  225. | Attr_OnMOUSEWHEEL
  226. | Attr_OnOFFLINE
  227. | Attr_OnONLINE
  228. | Attr_OnPAGEHIDE
  229. | Attr_OnPAGESHOW
  230. | Attr_OnPAUSE
  231. | Attr_OnPLAY
  232. | Attr_OnPLAYING
  233. | Attr_OnPOPSTATE
  234. | Attr_OnPROGRESS
  235. | Attr_OnRATECHANGE
  236. | Attr_OnREADYSTATECHANGE
  237. | Attr_OnREDO
  238. | Attr_OnRESIZE
  239. | Attr_OnSCROLL
  240. | Attr_OnSEEKED
  241. | Attr_OnSEEKING
  242. | Attr_OnSHOW
  243. | Attr_OnSTALLED
  244. | Attr_OnSTORAGE
  245. | Attr_OnSUSPEND
  246. | Attr_OnTIMEUPDATE
  247. | Attr_OnUNDO
  248. | Attr_OnVOLUMECHANGE
  249. | Attr_OnWAITING
  250. | Attr_PATTERN
  251. | Attr_PLACEHOLDER
  252. | Attr_POSTER
  253. | Attr_PRELOAD
  254. | Attr_PUBDATE
  255. | Attr_RADIOGROUP
  256. | Attr_REQUIRED
  257. | Attr_REVERSED
  258. | Attr_SANDBOX
  259. | Attr_SCOPED
  260. | Attr_SEAMLESS
  261. | Attr_SIZES
  262. | Attr_SPELLCHECK
  263. | Attr_SRCDOC
  264. | Attr_SRCLANG
  265. | Attr_STEP
  266. | Attr_ARIA_ACTIVEDESCENDANT
  267. | Attr_ARIA_ATOMIC
  268. | Attr_ARIA_AUTOCOMPLETE
  269. | Attr_ARIA_BUSY
  270. | Attr_ARIA_CHECKED
  271. | Attr_ARIA_CONTROLS
  272. | Attr_ARIA_DESCRIBEDBY
  273. | Attr_ARIA_DISABLED
  274. | Attr_ARIA_DROPEFFECT
  275. | Attr_ARIA_EXPANDED
  276. | Attr_ARIA_FLOWTO
  277. | Attr_ARIA_GRABBED
  278. | Attr_ARIA_HASPOPUP
  279. | Attr_ARIA_HIDDEN
  280. | Attr_ARIA_INVALID
  281. | Attr_ARIA_LABEL
  282. | Attr_ARIA_LABELLEDBY
  283. | Attr_ARIA_LEVEL
  284. | Attr_ARIA_LIVE
  285. | Attr_ARIA_MULTILINE
  286. | Attr_ARIA_MULTISELECTABLE
  287. | Attr_ARIA_ORIENTATION
  288. | Attr_ARIA_OWNS
  289. | Attr_ARIA_POSINSET
  290. | Attr_ARIA_PRESSED
  291. | Attr_ARIA_READONLY
  292. | Attr_ARIA_RELEVANT
  293. | Attr_ARIA_REQUIRED
  294. | Attr_ARIA_SELECTED
  295. | Attr_ARIA_SETSIZE
  296. | Attr_ARIA_SORT
  297. | Attr_ARIA_VALUEMAX
  298. | Attr_ARIA_VALUEMIN
  299. | Attr_ARIA_VALUENOW
  300. | Attr_ARIA_VALUETEXT
  301. | Attr_X
  302. | Attr_Y
  303. | Attr_VIEWBOX
  304. | Attr_PRESERVEASPECTRATIO
  305. | Attr_ZOOMANDPAN
  306. | Attr_BASEPROFILE
  307. | Attr_CONTENTSCRIPTTYPE
  308. | Attr_CONTENTSTYLETYPE
  309. | Attr_DISPLAY
  310. | N_TIDY_ATTRIBS
type optionId =
  1. | TidyUnknownOption
  2. | TidyIndentSpaces
  3. | TidyWrapLen
  4. | TidyTabSize
  5. | TidyCharEncoding
  6. | TidyInCharEncoding
  7. | TidyOutCharEncoding
  8. | TidyNewline
  9. | TidyDoctypeMode
  10. | TidyDoctype
  11. | TidyDuplicateAttrs
  12. | TidyAltText
  13. | TidySlideStyle
  14. | TidyErrFile
  15. | TidyOutFile
  16. | TidyWriteBack
  17. | TidyShowMarkup
  18. | TidyShowInfo
  19. | TidyShowWarnings
  20. | TidyQuiet
  21. | TidyIndentContent
  22. | TidyCoerceEndTags
  23. | TidyOmitOptionalTags
  24. | TidyHideEndTags
  25. | TidyXmlTags
  26. | TidyXmlOut
  27. | TidyXhtmlOut
  28. | TidyHtmlOut
  29. | TidyXmlDecl
  30. | TidyUpperCaseTags
  31. | TidyUpperCaseAttrs
  32. | TidyMakeBare
  33. | TidyMakeClean
  34. | TidyGDocClean
  35. | TidyLogicalEmphasis
  36. | TidyDropPropAttrs
  37. | TidyDropFontTags
  38. | TidyDropEmptyElems
  39. | TidyDropEmptyParas
  40. | TidyFixComments
  41. | TidyBreakBeforeBR
  42. | TidyBurstSlides
  43. | TidyNumEntities
  44. | TidyQuoteMarks
  45. | TidyQuoteNbsp
  46. | TidyQuoteAmpersand
  47. | TidyWrapAttVals
  48. | TidyWrapScriptlets
  49. | TidyWrapSection
  50. | TidyWrapAsp
  51. | TidyWrapJste
  52. | TidyWrapPhp
  53. | TidyFixBackslash
  54. | TidyIndentAttributes
  55. | TidyXmlPIs
  56. | TidyXmlSpace
  57. | TidyEncloseBodyText
  58. | TidyEncloseBlockText
  59. | TidyKeepFileTimes
  60. | TidyWord2000
  61. | TidyMark
  62. | TidyEmacs
  63. | TidyEmacsFile
  64. | TidyLiteralAttribs
  65. | TidyBodyOnly
  66. | TidyFixUri
  67. | TidyLowerLiterals
  68. | TidyHideComments
  69. | TidyIndentCdata
  70. | TidyForceOutput
  71. | TidyShowErrors
  72. | TidyAsciiChars
  73. | TidyJoinClasses
  74. | TidyJoinStyles
  75. | TidyEscapeCdata
  76. | TidyLanguage
  77. | TidyNCR
  78. | TidyOutputBOM
  79. | TidyReplaceColor
  80. | TidyCSSPrefix
  81. | TidyInlineTags
  82. | TidyBlockTags
  83. | TidyEmptyTags
  84. | TidyPreTags
  85. | TidyAccessibilityCheckLevel
  86. | TidyVertSpace
  87. | TidyPunctWrap
  88. | TidyMergeEmphasis
  89. | TidyMergeDivs
  90. | TidyDecorateInferredUL
  91. | TidyPreserveEntities
  92. | TidySortAttributes
  93. | TidyMergeSpans
  94. | TidyAnchorAsName
  95. | TidyPPrintTabs
  96. | N_TIDY_OPTIONS
type doc
type node
type attr
type opt
val string_of_opt : opt -> string
val opt_str : opt -> string
val opt_int : opt -> int
val opt_bool : opt -> bool
module Config : sig ... end
module Attr : sig ... end
module DocTree : sig ... end
module Node : sig ... end
val create : unit -> doc
val parseFile : doc -> string -> unit
val parseString : doc -> string -> unit
val cleanAndRepair : doc -> unit
val reportDoctype : doc -> unit
val runDiagnostics : doc -> unit
val saveFile : doc -> string -> unit
val saveString : doc -> string option
val accessWarningCount : doc -> int
val configErrorCount : doc -> int
val detectedGenericXml : doc -> bool
val detectedHtmlVersion : doc -> int
val detectedXhtml : doc -> bool
val errorCount : doc -> int
val errorSummary : doc -> unit
val fileExists : doc -> string -> unit
val generalInfo : doc -> unit
val libraryVersion : unit -> string
val loadConfig : doc -> string -> unit
val warningCount : doc -> int
module Tree : sig ... end
OCaml

Innovation. Community. Security.