Update libtidy to version 5.8.0 final. Main changes:
<slot>
tag.TidyAttr_LOADING
, like <img loading=“lazy” src=“…”>
.TidyAttr_FILL
, TidyAttr_FILLRULE
, TidyAttr_STROKE
, TidyAttr_STROKEDASHARRAY
, TidyAttr_STROKEDASHOFFSET
, TidyAttr_STROKELINECAP
, TidyAttr_STROKELINEJOIN
, TidyAttr_STROKEMITERLIMIT
, TidyAttr_STROKEWIDTH
, TidyAttr_COLORINTERPOLATION
, TidyAttr_COLORRENDERING
, TidyAttr_OPACITY
, TidyAttr_STROKEOPACITY
, TidyAttr_FILLOPACITY
.<title>
elements. Also issue a warning if the <title>
element is empty.<open>
tag to boolean.TidyWrapPhp
wrapping multiple lines.</summary>
.html
in doctype.<![if …]> … <![endif]>
.Other changes:
TidyCloseQuotedValuesAtGt
option. It instructs the parser to close a quoted value prematurely if it encounters a “>” character before or instead of the closing quote character. This can improve parsing of HTML tag attribute values which are accidentally missing a closing quote character.New:
TidyShowFilename
option to show file names in error messages and warnings.Bug Fixes:
tidyCleanAndRepair
a malformed meta tag could cause an access violation.New:
tidyErrorSummary
– Write error information to the current error sink.tidyGeneralInfo
– Write markup information to the current error sink.tidyPlatform
– The Tidy build platform.tidyOptionIsList
– Does an option take a list of items?tidyOptGetPriorityAttrList
– Create a new priority attributes iterator.tidyOptGetNextPriorityAttr
– Retrieve the first / next priority attribute from an iterator.tidyOptGetMutedMessageList
– Create a muted messages iterator.tidyOptGetNextMutedMessage
– Retrieve the first / next muted message from an iteraor.tidySetEmacsFile
– Set the file path to use for reports with TidyEmacs.tidyGetEmacsFile
– Get the file path to use for reports with TidyEmacs.tidySetConfigCallback
– Extend configuration file options.tidySetConfigChangeCallback
– Monitor configuration changes.tidySetReportCallback
– Use a va_lists callback to send reports.tidySetMessageCallback
– Use a TidyMessage callback to send reports.tidyGetMessageDoc
– Get the TidyDoc of a message.tidyGetMessageCode
– Get the integer code of a message.tidyGetMessageKey
– Get the text key of a message.tidyGetMessageLine
– Get the line number a message applies to.tidyGetMessageColumn
– Get the column a message applies to.tidyGetMessageLevel
– Get the TidyReportLevel of the message.tidyGetMessageArguments
– Create a new message arguments iterator.tidyGetNextMessageArgument
– Retrieve the first / next TidyMessageArgument from an iterator.tidyGetArgType
– Return the TidyFormatParameterType of the given message argument.tidyGetArgFormat
– Return the format specifier of the given message argument.tidyGetArgValueString
– Return the string value of the given message argument.tidyGetArgValueUInt
– Return the unsigned integer value of the given message argument.tidyGetArgValueInt
– Return the integer value of the given message argument.tidyGetArgValueDouble
– Return the double value of the given message argument.tidyErrorCodeAsKey
– Return the text message key from an integer message code.tidyErrorCodeFromKey
– Return the integer message code from a text message key.getErrorCodeList
– Create a new message code iterator.getNextErrorCode
– Get the first / next integer error code from an error code iterator.tidySetLanguage
– Set the Tidy output language.tidyGetLanguage
– Get the current Tidy output language.tidyLocalizedStringN
– Retrieve the localized string of a quantity.tidyLocalizedString
– Retrieve the localized string for a MessageType.tidyDefaultString
– Retrieve a MessageType string in the default localization.getStringKeyList
– Initiate an iterator for a list of string key codes available in Tidy.getNextStringKey
– Get the next key from a string key list iterator.getInstalledLanguageList
– Initiate an iterator for a list of Tidy's installed languages.getNextInstalledLanguage
– Get the next language string from the list of installed languages.getWindowsLanguageList
– Create a new Windows ↔ POSIX locale mappings iterator.getNextWindowsLanguage
– Get the next tidyLocaleMapItemPtr from a Windows language list iterator.TidyLangWindowsName
– Return the Windows name from a tidyLocaleMapItem.TidyLangPosixName
– Return the POSIX name from a tidyLocaleMapItem.Removed:
tidyAttrIsProp
– it did not know the element which is required to tell whether an attribute is proprietary.tidySetReportFilter2
– replaced by similar function tidySetReportCallback
.tidySetReportFilter3
– replaced by similar function tidySetMessageCallback
.tidyNodeIs…
functions – use tidyNodeGetId
.tidyAttrIs…
functions – use tidyAttrGetId
.Changed:
tidySetReportFilter
.TidyConfigCategory
elements.TidyDialogueDoc
is deprecated: Use TidyDialogueFootnote
instead.Bug Fixes:
TidyDoc
argument to tidyFileExists
.tidyCleanAndRepair
when converting XHTML input to HTML output.TidyAttr_XMLNSXLINK
attribute “xmlns:xlink” to support inline <svg>.tidyOptParseValue
access violation crash when writing a read-only option.TidyEscapeScripts
to control how DITidy escapes items that look like closing tags in scripts. Enabled by default.TidyAttr_CROSSORIGIN
, TidyAttr_INTEGRITY
, TidyAttr_AS
.TidyOmitOptionalTags
is enabled.tidyCleanAndRepair
if no document was loaded.tidySetPrettyPrinterCallback
and TidyPPProgress
.TidySkipNested
and TidyStrictTagsAttr
.tidyAttrDiscard
and tidyDiscardElement
interfaces.tidyLibraryVersion
to replace deprecated tidyReleaseDate
.tidyReportDoctype
.DITidyUtils
unit with useful functions to simplify document parsing from TStream
, among others.Demos\DITidy_Traverse_Tree\DITidy_Traverse_Tree_non_recursive.dpr
.TidyShowInfo
, TidyOmitOptionalTags
, TidyGDocClean
, and TidyDropEmptyElems
.TidyHideEndTags
renamed to TidyCoerceEndTags
, but still supported.TidyMakeClean
must not merge inline scripts into <p> or <div>.TidyAnchorAsName
option.TidyAllocator
and TidyAllocatorVtbl
.TidySortAttributes
and TidyMergeSpans
.TidyDropEmptyHeadings
.TidyTagIdSet
type.tidyBufAppendStr
.tmbstr = C_char_ptr;
to achieve compatiblity with PAnsiChar
.