tidy-html5-5.2.0/ 0000775 0000000 0000000 00000000000 12726015173 0013522 5 ustar 00root root 0000000 0000000 tidy-html5-5.2.0/.gitignore 0000664 0000000 0000000 00000000260 12726015173 0015510 0 ustar 00root root 0000000 0000000 /autom4te.cache/
/console/.deps/
/console/.libs/
/src/.deps/
/src/.libs/
*.user
*.suo
*.sdf
/test
/test/testall.log
/test/tmp/
/test/tmp2/
*~
temp*
*.bak
.DS_Store
.idea
*.old
tidy-html5-5.2.0/CMakeLists.txt 0000664 0000000 0000000 00000032635 12726015173 0016273 0 ustar 00root root 0000000 0000000 # CMakeLists.txt - 20150402 - 20150130 - 20140801 - for github htacg/tidy-html5
# Prepare for changing the name to 'tidy'
cmake_minimum_required (VERSION 2.8.7)
set(LIB_NAME tidy)
project (${LIB_NAME})
# ### NOTE: *** Adjust version.txt when required ***
# read 'version' file into a variable (stripping any newlines or spaces)
# 20150609: Revert to supplying BOTH version and date, as we had back in Jan 2015
# NOTE: Both version and date MUST be DOT separated, in two lines.
file(READ version.txt versionFile)
if (NOT versionFile)
message(FATAL_ERROR "Unable to determine libtidy version. version.txt file is missing.")
endif()
string(STRIP "${versionFile}" VERSION_TEXT)
string(REGEX REPLACE "(.*)[\r\n|\n](.*)" "\\1" LIBTIDY_VERSION ${VERSION_TEXT})
string(REGEX REPLACE "(.*)[\r\n|\n](.*)" "\\2" LIBTIDY_DATE ${VERSION_TEXT})
# establish version number
if (LIBTIDY_VERSION)
string(REPLACE "." ";" VERSION_LIST ${LIBTIDY_VERSION})
list(GET VERSION_LIST 0 TIDY_MAJOR_VERSION)
list(GET VERSION_LIST 1 TIDY_MINOR_VERSION)
list(GET VERSION_LIST 2 TIDY_POINT_VERSION)
else ()
message(FATAL_ERROR "*** FAILED to get a VERSION from version.txt!")
endif ()
# establish version date
if (LIBTIDY_DATE)
string(REPLACE "." ";" DATE_LIST ${LIBTIDY_DATE})
list(GET DATE_LIST 0 tidy_YEAR)
list(GET DATE_LIST 1 tidy_MONTH)
list(GET DATE_LIST 2 tidy_DAY)
else ()
message(FATAL_ERROR "*** FAILED to get a DATE from version.txt!")
endif ()
# By default, BOTH library types built, Allow turning OFF shared if not needed
set( LIB_TYPE STATIC ) # set default message
option( BUILD_SHARED_LIB "Set OFF to NOT build shared library" ON )
option( BUILD_TAB2SPACE "Set ON to build utility app, tab2space" OFF )
option( BUILD_SAMPLE_CODE "Set ON to build the sample code" OFF )
if (NOT MAN_INSTALL_DIR)
set(MAN_INSTALL_DIR share/man/man1)
endif ()
# Issue #326 - Allow linkage choice of console app tidy
option( TIDY_CONSOLE_SHARED "Set ON to link with shared(DLL) lib." OFF )
if (TIDY_CONSOLE_SHARED)
if (NOT BUILD_SHARED_LIB)
message(FATAL_ERROR "Enable shared build for this tidy linkage!")
endif ()
endif ()
# Allow building without extra language support
option( SUPPORT_LOCALIZATIONS "Set OFF to build without additional languages." ON )
if (SUPPORT_LOCALIZATIONS)
add_definitions ( -DSUPPORT_LOCALIZATIONS=1 )
else ()
add_definitions ( -DSUPPORT_LOCALIZATIONS=0 )
endif ()
if(CMAKE_COMPILER_IS_GNUCXX)
set( WARNING_FLAGS -Wall )
endif(CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set( WARNING_FLAGS "-Wall -Wno-overloaded-virtual" )
endif()
if(WIN32 AND MSVC)
# turn off various warnings
set(WARNING_FLAGS "${WARNING_FLAGS} /wd4996")
# C4090: 'function' : different 'const' qualifiers
# C4244: '=' : conversion from '__int64' to 'uint', possible loss of data
# C4267: 'function' : conversion from 'size_t' to 'uint', possible loss of data
# foreach(warning 4244 4251 4267 4275 4290 4786 4305)
foreach(warning 4090 4244 4267)
set(WARNING_FLAGS "${WARNING_FLAGS} /wd${warning}")
endforeach()
set( MSVC_FLAGS "-DNOMINMAX -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D__CRT_NONSTDC_NO_WARNINGS" )
# if (${MSVC_VERSION} EQUAL 1600)
# set( MSVC_LD_FLAGS "/FORCE:MULTIPLE" )
# endif (${MSVC_VERSION} EQUAL 1600)
# set( NOMINMAX 1 )
# to distinguish between debug and release lib in windows
set( CMAKE_DEBUG_POSTFIX "d" ) # little effect in unix
else()
# add any gcc flags
endif()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS} -D_REENTRANT" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS} -D_REENTRANT" )
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MSVC_LD_FLAGS}" )
add_definitions ( -DHAVE_CONFIG_H )
add_definitions ( -DSUPPORT_UTF16_ENCODINGS=1 )
add_definitions ( -DSUPPORT_ASIAN_ENCODINGS=1 )
add_definitions ( -DSUPPORT_ACCESSIBILITY_CHECKS=1 )
add_definitions ( -DLIBTIDY_VERSION="${LIBTIDY_VERSION}" )
add_definitions ( -DRELEASE_DATE="${tidy_YEAR}/${tidy_MONTH}/${tidy_DAY}" )
### add_definitions ( -DRC_NUMBER="MinGW" )
# Issue #188 - Support user items in platform.h
if (TIDY_CONFIG_FILE)
add_definitions( -DTIDY_CONFIG_FILE="${TIDY_CONFIG_FILE}" )
endif ()
if (TIDY_USER_CONFIG_FILE)
add_definitions( -DTIDY_USER_CONFIG_FILE="${TIDY_USER_CONFIG_FILE}" )
endif ()
if (SUPPORT_GETPWNAM)
add_definitions( -DSUPPORT_GETPWNAM=1 )
endif ()
if(BUILD_SHARED_LIB)
set(LIB_TYPE SHARED)
message(STATUS "*** Also building DLL library ${LIB_TYPE}, version ${LIBTIDY_VERSION}, date ${LIBTIDY_DATE}")
else()
message(STATUS "*** Only building static library ${LIB_TYPE}, version ${LIBTIDY_VERSION}, date ${LIBTIDY_DATE}")
endif()
include_directories ( "${PROJECT_SOURCE_DIR}/include" "${PROJECT_SOURCE_DIR}/src" )
##############################################################################
### tidy library
# file locations
set ( SRCDIR src )
set ( INCDIR include )
# file lists
set ( CFILES
${SRCDIR}/access.c ${SRCDIR}/attrs.c ${SRCDIR}/istack.c
${SRCDIR}/parser.c ${SRCDIR}/tags.c ${SRCDIR}/entities.c
${SRCDIR}/lexer.c ${SRCDIR}/pprint.c ${SRCDIR}/charsets.c ${SRCDIR}/clean.c
${SRCDIR}/message.c ${SRCDIR}/config.c ${SRCDIR}/alloc.c
${SRCDIR}/attrask.c ${SRCDIR}/attrdict.c ${SRCDIR}/attrget.c
${SRCDIR}/buffio.c ${SRCDIR}/fileio.c ${SRCDIR}/streamio.c
${SRCDIR}/tagask.c ${SRCDIR}/tmbstr.c ${SRCDIR}/utf8.c
${SRCDIR}/tidylib.c ${SRCDIR}/mappedio.c ${SRCDIR}/gdoc.c
${SRCDIR}/language.c )
set ( HFILES
${INCDIR}/tidyplatform.h ${INCDIR}/tidy.h ${INCDIR}/tidyenum.h
${INCDIR}/tidybuffio.h )
set ( LIBHFILES
${SRCDIR}/access.h ${SRCDIR}/attrs.h ${SRCDIR}/attrdict.h ${SRCDIR}/charsets.h
${SRCDIR}/clean.h ${SRCDIR}/config.h ${SRCDIR}/entities.h
${SRCDIR}/fileio.h ${SRCDIR}/forward.h ${SRCDIR}/lexer.h
${SRCDIR}/mappedio.h ${SRCDIR}/message.h ${SRCDIR}/parser.h
${SRCDIR}/pprint.h ${SRCDIR}/streamio.h ${SRCDIR}/tags.h
${SRCDIR}/tmbstr.h ${SRCDIR}/utf8.h ${SRCDIR}/tidy-int.h
${SRCDIR}/version.h ${SRCDIR}/gdoc.h ${SRCDIR}/language.h
${SRCDIR}/language_en.h ${SRCDIR}/win32tc.h )
if (MSVC)
list(APPEND CFILES ${SRCDIR}/sprtf.c)
list(APPEND LIBHFILES ${SRCDIR}/sprtf.h)
endif ()
#######################################
if (NOT LIB_INSTALL_DIR)
set(LIB_INSTALL_DIR lib${LIB_SUFFIX})
endif ()
if (NOT BIN_INSTALL_DIR)
set(BIN_INSTALL_DIR bin)
endif ()
if (NOT INCLUDE_INSTALL_DIR)
set(INCLUDE_INSTALL_DIR include)
endif ()
# Always build the STATIC library
set(name tidy-static)
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
set_target_properties( ${name} PROPERTIES
OUTPUT_NAME ${LIB_NAME}s
)
if (NOT TIDY_CONSOLE_SHARED) # user wants default static linkage
list ( APPEND add_LIBS ${name} )
endif ()
install(TARGETS ${name}
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
)
install( FILES ${HFILES} DESTINATION ${INCLUDE_INSTALL_DIR} )
########################################
# if user option still on
if (BUILD_SHARED_LIB)
set(name tidy-share)
add_library ( ${name} SHARED ${CFILES} ${HFILES} ${LIBHFILES} )
set_target_properties( ${name} PROPERTIES
OUTPUT_NAME ${LIB_NAME} )
set_target_properties( ${name} PROPERTIES
VERSION ${LIBTIDY_VERSION}
SOVERSION ${TIDY_MAJOR_VERSION} )
set_target_properties( ${name} PROPERTIES
COMPILE_FLAGS "-DBUILD_SHARED_LIB" )
set_target_properties( ${name} PROPERTIES
COMPILE_FLAGS "-DBUILDING_SHARED_LIB" )
install(TARGETS ${name}
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
)
if (TIDY_CONSOLE_SHARED) # user wants shared/dll linkage
list ( APPEND add_LIBS ${name} )
endif ()
endif ()
##########################################################
### main executable - linked with STATIC/SHARED library
set(name ${LIB_NAME})
set ( BINDIR console )
add_executable( ${name} ${BINDIR}/tidy.c )
target_link_libraries( ${name} ${add_LIBS} )
if (MSVC)
set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d )
endif ()
if (NOT TIDY_CONSOLE_SHARED)
set_target_properties( ${name} PROPERTIES
COMPILE_FLAGS "-DTIDY_STATIC" )
endif ()
install (TARGETS ${name} DESTINATION bin)
if (BUILD_TAB2SPACE)
set(name tab2space)
add_executable( ${name} ${BINDIR}/tab2space.c )
if (MSVC)
set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d )
endif ()
# no INSTALL of this 'local' tool - use depreciated
endif ()
if (BUILD_SAMPLE_CODE)
set(name test71)
set(dir console)
add_executable( ${name} ${dir}/${name}.cxx )
if (MSVC)
set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d )
endif ()
target_link_libraries( ${name} ${add_LIBS} )
# no INSTALL of this 'local' sample
endif ()
#==========================================================
# Create man pages
#==========================================================
if (UNIX)
find_program( XSLTPROC_FOUND xsltproc )
if (XSLTPROC_FOUND)
## NOTE: man name must match exe ie currently `${LIB_NAME}.1` not `tidy.1`
## also could use `manpath` command output to determine target install path
set(TIDY_MANFILE ${LIB_NAME}.1)
message(STATUS "*** Generating man ${TIDY_MANFILE} custom commands...")
set(TIDY1XSL ${CMAKE_CURRENT_BINARY_DIR}/tidy1.xsl)
set(TIDYHELP ${CMAKE_CURRENT_BINARY_DIR}/tidy-help.xml)
set(TIDYCONFIG ${CMAKE_CURRENT_BINARY_DIR}/tidy-config.xml)
add_custom_target(man ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME}")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/man/tidy1.xsl.in
${TIDY1XSL}
)
# run built EXE to generate xml output
add_custom_command(
TARGET man
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} -xml-help > ${TIDYHELP}
COMMENT "Generate ${TIDYHELP}"
VERBATIM
)
# run built EXE to generate more xml output
add_custom_command(
TARGET man
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} -xml-config > ${TIDYCONFIG}
COMMENT "Generate ${TIDYCONFIG}"
VERBATIM
)
# run xsltproc to generate the install files..
add_custom_command(
TARGET man
DEPENDS ${TIDYHELP}
COMMAND xsltproc ARGS ${TIDY1XSL} ${TIDYHELP} > ${CMAKE_CURRENT_BINARY_DIR}/${TIDY_MANFILE}
COMMENT "Generate ${TIDY_MANFILE}"
VERBATIM
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TIDY_MANFILE} DESTINATION ${MAN_INSTALL_DIR})
else ()
message(STATUS "*** NOTE: xsltproc NOT FOUND! Can NOT generate man page.")
message(STATUS "*** You need to install xsltproc in your system.")
endif ()
endif ()
##########################################################
### Create MSI,EXE, DMG, DEB/RPM
### TODO: Check each of these builds
##########################################################
set(BITNESS 32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(BITNESS 64)
endif()
if (WIN32)
# MSI - this needs WiX Tooset installed and a path to candle.exe
# EXE - this needs NSIS tools to be in path
set(CPACK_GENERATOR "NSIS;WIX;ZIP")
set(CPACK_SOURCE_GENERATOR "ZIP")
set(CPACK_WIX_UPGRADE_GUID "D809598A-B513-4752-B268-0BAC403B00E4")
elseif ( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
set(CPACK_GENERATOR "PackageMake")
set(CPACK_SOURCE_GENERATOR "TGZ")
else ()
set(CPACK_GENERATOR "DEB;RPM")
set(CPACK_SOURCE_GENERATOR "TGZ")
endif ()
set(CPACK_PACKAGE_NAME "${LIB_NAME}")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${LIB_NAME} - HTML syntax checker")
set(CPACK_PACKAGE_VENDOR "HTML Tidy Advocacy Community Group")
set(CPACK_PACKAGE_CONTACT "maintainer@htacg.org")
set(CPACK_PACKAGE_VERSION ${LIBTIDY_VERSION})
set(CPACK_PACKAGE_VERSION_MAJOR "${TIDY_MAJOR_VERSION}")
set(CPACK_PACKAGE_VERSION_MINOR "${TIDY_MINOR_VERSION}")
set(CPACK_PACKAGE_VERSION_PATCH "${TIDY_POINT_VERSION}")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README/README.html")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README/LICENSE.txt")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README/README.html")
set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/README/README.html")
## debian config
set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT})
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://www.html-tidy.org/")
#set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc")
set(CPACK_DEBIAN_PACKAGE_SECTION "Libraries")
## RPM config
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/man" "/usr/share/man/man1")
set(CPACK_SOURCE_IGNORE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/test/;${CMAKE_CURRENT_SOURCE_DIR}/build/;${CMAKE_CURRENT_SOURCE_DIR}/.git/")
if (NOT WIN32 AND NOT APPLE)
set( CPACK_PACKAGE_FILE_NAME "${LIB_NAME}-${CPACK_PACKAGE_VERSION}-${BITNESS}bit" )
endif ()
include(CPack)
# eof
tidy-html5-5.2.0/README.md 0000664 0000000 0000000 00000000440 12726015173 0014777 0 ustar 00root root 0000000 0000000 # HTML Tidy with HTML5 support
All READMEs and related materials can be found in [README/][1].
For build instructions please see [README/README.md][2].
[1]: https://github.com/htacg/tidy-html5/tree/master/README
[2]: https://github.com/htacg/tidy-html5/blob/master/README/README.md
tidy-html5-5.2.0/README/ 0000775 0000000 0000000 00000000000 12726015173 0014457 5 ustar 00root root 0000000 0000000 tidy-html5-5.2.0/README/CODESTYLE.md 0000664 0000000 0000000 00000003000 12726015173 0016325 0 ustar 00root root 0000000 0000000 # HTML Tidy Code Style
The source code of **libTidy**, and console app **tidy**, follow the preferences of the original maintainers. Perhaps some of these decisions were arbitrary and based on their sense of aesthetics at the time, but it is good to have all the code looking the same even if it is not exactly what everyone would prefer.
Developers adding code to **Tidy!** are urged to try to follow the existing code style. Code that does not follow these conventions may be accepted, but may be modified as time goes by to best fit the `Tidy Style`.
There has been a suggestion of using available utilities to make the style consistent, like [Uncrusty](https://github/bengardener/uncrusty) - see [issue #245](https://github.com/htacg/tidy-html5/issues/245), and maybe others...
Others have suggested the [AStyle](http://astyle.sourceforge.net/) formatting program with say '-taOHUKk3 -M8' arguments, to conform, but there are a few bugs in AStyle.
But again these, and other tools, may not produce code that everybody agrees with... and are presently not formally used in Tidy!
#### Known Conventions
From reading of the Tidy source, some things are self evident... in no particular order...
- Use of 4-space indenting, and no tabs.
- No C++ single line comments using `//`.
- The openning `{` is indented on the next newline.
- While the maximum code line length varies, generally long `if`, `while`, ... statements are wrapped to newlines.
Look forward to this document being filled out in detail...
Date: 20150904
tidy-html5-5.2.0/README/CONTRIBUTING.md 0000664 0000000 0000000 00000006574 12726015173 0016724 0 ustar 00root root 0000000 0000000 # Contributing to HTML Tidy
So you want to contribute to Tidy? Fantastic! Here's a brief overview on how best to do so.
### Support request
If you are having trouble running console `Tidy`, or using the `Tidy Library` API in your own project, then maybe the best places to get help is either via a comment in [Tidy Issues](https://github.com/htacg/tidy-html5/issues), or on the [Tidy Mail Archive](https://lists.w3.org/Archives/Public/html-tidy/) list.
In either place please start with a short subject to describe the issue. If it involves running tidy on a html file, or an API question, make sure to include the version: `$ tidy -v`; what was the configuration used; a small sample input; the output, and the output expected; some sample code, to make quick testing easy.
If you do add a sample html input, then it can also be very helpful if that sample **passes** the W3C [validation](https://validator.w3.org/#validate_by_upload)... tidy attempts to follow all current W3C standards...
If you are able to build tidy from [source](https://github.com/htacg/tidy-html5), requires [CMake](https://cmake.org/download/), and can find the problem in the code, then read on about how you can create a `Pull Request`... share your code, ideas, ....
### What to change
Here are some examples of things you might want to make a pull request for:
- New features
- Bug fixes
- Inefficient blocks of code
- Memory problems
- Language translations
If you have a more deeply-rooted problem with how the program is built or some of the stylistic decisions made in the code, it is best to [create an issue](https://github.com/htacg/tidy-html5/issues/new) before putting the effort into a pull request. The same goes for new features - it might be best to check the project's direction, existing pull requests, and currently open and closed issues first.
Concerning the 'Tidy Code Style', checkout [CODESTYLE.md](CODESTYLE.md), but looking at existing code is the best way to get a good feel for the patterns we use.
### Using Git appropriately
1. Fork the repository to your GitHub account.
2. Optionally create a **topical branch** - a branch whose name is succint but explains what
you're doing, such as "feature/add-new-lines"...
3. Make your changes, committing at logical breaks.
4. Push your work to your personal account.
5. [Create a pull request](https://help.github.com/articles/using-pull-requests).
6. Watch for comments or acceptance.
Please note - if you want to change multiple things that don't depend on each
other, it is better to use `branches`, and make sure you check the master branch back out before making more changes - that way we can take in each change seperate. Else github has a tendancy to combine your requests into one.
If you are a continuing contributor then you will need to `rebase` your fork, to htacg `master`, **before** doing any more work, and likewise branches, otherwise we may not be able to cleanly merge your PR. This is a simple process -
```
$ git remote add upstream git@github.com:htacg/tidy-html5.git # once only
$ git checkout master
$ git status
$ git stash # if not clean
$ git fetch upstream
$ git rebase upstream/master
$ git stash pop # if required, and fix conflicts
$ git push # update the fork master
```
This can be repeated for `branches`.
### Help Tidy Get Better
It goes without saying **all help is appreciated**. We need to work together to make Tidy! better...
tidy-html5-5.2.0/README/LICENSE.md 0000664 0000000 0000000 00000003207 12726015173 0016065 0 ustar 00root root 0000000 0000000 # HTML Tidy
## HTML parser and pretty printer
Copyright (c) 1998-2003 World Wide Web Consortium
(Massachusetts Institute of Technology, European Research
Consortium for Informatics and Mathematics, Keio University).
All Rights Reserved.
This software and documentation is provided "as is," and
the copyright holders and contributing author(s) make no
representations or warranties, express or implied, including
but not limited to, warranties of merchantability or fitness
for any particular purpose or that the use of the software or
documentation will not infringe any third party patents,
copyrights, trademarks or other rights.
The copyright holders and contributing author(s) will not be held
liable for any direct, indirect, special or consequential damages
arising out of any use of the software or documentation, even if
advised of the possibility of such damage.
Permission is hereby granted to use, copy, modify, and distribute
this source code, or portions hereof, documentation and executables,
for any purpose, without fee, subject to the following restrictions:
1. The origin of this source code must not be misrepresented.
2. Altered versions must be plainly marked as such and must
not be misrepresented as being the original source.
3. This Copyright notice may not be removed or altered from any
source or altered source distribution.
The copyright holders and contributing author(s) specifically
permit, without fee, and encourage the use of this source code
as a component for supporting the Hypertext Markup Language in
commercial products. If you use this source code in a product,
acknowledgement is not required but would be appreciated.
tidy-html5-5.2.0/README/LICENSE.txt 0000664 0000000 0000000 00000003642 12726015173 0016307 0 ustar 00root root 0000000 0000000
Copyright (c) 1998-2015 World Wide Web Consortium
(Massachusetts Institute of Technology, European Research
Consortium for Informatics and Mathematics, Keio University).
All Rights Reserved.
Contributing Author(s):
Dave Raggett
The contributing author(s) would like to thank all those who
helped with testing, bug fixes and suggestions for improvements.
This wouldn't have been possible without your help.
COPYRIGHT NOTICE:
This software and documentation is provided "as is," and
the copyright holders and contributing author(s) make no
representations or warranties, express or implied, including
but not limited to, warranties of merchantability or fitness
for any particular purpose or that the use of the software or
documentation will not infringe any third party patents,
copyrights, trademarks or other rights.
The copyright holders and contributing author(s) will not be held
liable for any direct, indirect, special or consequential damages
arising out of any use of the software or documentation, even if
advised of the possibility of such damage.
Permission is hereby granted to use, copy, modify, and distribute
this source code, or portions hereof, documentation and executables,
for any purpose, without fee, subject to the following restrictions:
1. The origin of this source code must not be misrepresented.
2. Altered versions must be plainly marked as such and must
not be misrepresented as being the original source.
3. This Copyright notice may not be removed or altered from any
source or altered source distribution.
The copyright holders and contributing author(s) specifically
permit, without fee, and encourage the use of this source code
as a component for supporting the Hypertext Markup Language in
commercial products. If you use this source code in a product,
acknowledgment is not required but would be appreciated.
tidy-html5-5.2.0/README/LOCALIZE.md 0000664 0000000 0000000 00000001367 12726015173 0016212 0 ustar 00root root 0000000 0000000 # Localize HTML Tidy
HTML Tidy is used worldwide but is not very friendly to non-English speakers.
The latest versions of HTML Tidy and `libtidy` now support other languages and
regional variations, but we need your help to make it accessible to these users
by using your knowledge of other languages to make Tidy better.
Help us translate HTML Tidy into another language and as part of our project
team you will certainly earn the admiration of fellow Tidy users worldwide.
## How to Contribute
All READMEs (including [instructions][2] on how to localize Tidy) and related
materials can be found in [localize][1].
[1]: https://github.com/htacg/tidy-html5/tree/master/localize
[2]:https://github.com/htacg/tidy-html5/blob/master/localize/README.md
tidy-html5-5.2.0/README/OPTIONS.md 0000664 0000000 0000000 00000015121 12726015173 0016134 0 ustar 00root root 0000000 0000000 # Tidy Config Options
Tidy supports a quite large number of configuration options. The full list can be output using `-help-config`. This will show the option to be used either on the command line or in a configuration file, the type of option, and the value(s) that can be used. The current default value for each option can be seen using `-show-config`.
The options can also be listed in xml format. `-xml-help` will output each option plus a description. `-xml-config` will not only output the option and a desciption, but will include the type, default and examples. These xml outputs are used, with the aid of `xsltproc` and `doxygen`, to generate the [API Documentation](http://api.html-tidy.org/).
These options can also be used by application linking with **`libtidy`**. For each option there is a `TidyOptionId` enumeration in the `tidyenum.h` file, and get/set functions for each option type.
This file indicates how to add a new option to tidy. Here adding an option `TidyEscapeScripts`. In essence it consists of 4 steps -
1. Add the option **`ID`** to `tidyenum.h`.
2. Add to the **`table`** `TidyOptionImpl option_defs[]` in `config.c`
3. Add the id, with a **`description`** to `language_en.h`
4. Use the option in the code.
#### 1. Option ID
In `tidyenum.h` the `TidyOptionId` can be in any order, but normally a new option would be added just before the last `N_TIDY_OPTIONS`, which must remain the last. Choosing the id name can be any string, but by convention it will commence with `Tidy` followed by brief descriptive like text.
Naturally it can not be the same as any exisitng option. That is, it must be unique. And it will be followed by a brief descriptive special doxygen formatted comment. So for this new option I have chosen -
```
TidyEscapeScripts, /**< Escape items that look like closing tags */
```
#### 2. Table Definition
In `config.c`, added in `TidyOptionImpl option_defs[]`. Again it can be in any order, but normally a new option would be added just before the last `N_TIDY_OPTIONS`, which must remain the last.
The structure definition of the table entries is simple -
```
struct _tidy_option
{
TidyOptionId id;
TidyConfigCategory category; /* put 'em in groups */
ctmbstr name; /* property name */
TidyOptionType type; /* string, int or bool */
ulong dflt; /* default for TidyInteger and TidyBoolean */
ParseProperty* parser; /* parsing method, read-only if NULL */
const ctmbstr* pickList; /* pick list */
ctmbstr pdflt; /* default for TidyString */
};
```
Naturally it will commence with the above chosen unique **`id`**.
The **`category`** will be one of this enumeration -
```
typedef enum
{
TidyMarkup, /**< Markup options: (X)HTML version, etc */
TidyDiagnostics, /**< Diagnostics */
TidyPrettyPrint, /**< Output layout */
TidyEncoding, /**< Character encodings */
TidyMiscellaneous /**< File handling, message format, etc. */
} TidyConfigCategory;
```
Care, each of these enumeration strings have been equated to 2 uppercase letters. If you feel there should be another `category` or group then this can be discussed, and added.
The **`name`** can be anything, but should try to be somewhat descriptive of the otpion. Again this string must be unique. It should be lowercase alphanumeric characters, and can contain a `-` separator. Remember this is the name places on the command line, or in a configuration file to set the option.
The **`type`** is one of the following enumeration items -
```
typedef enum
{
TidyString, /**< String */
TidyInteger, /**< Integer or enumeration */
TidyBoolean /**< Boolean flag */
} TidyOptionType;
```
Care, each of these enumeration strings have been equated to 2 uppercase letters. If you feel there should be another `type` then this can be discussed, but would require other additional things. And also note the `TidyTriState` is the same as a `TidyInteger` except uses its own parser.
The next item is the **`default`** value for a boolean, tristate or integer. Note tidy set `no=0` and `yes=1` as its own `Bool` enumeration.
There are a number of **`parser`** for the options. Likewise a number of **`pickList`**. Find another option similar to your new option and use the same values.
Presently no options have the final **`default`** string, and it is left out of the table. The compiler will add a NULL.
The final table entry added. Note in here the spacing has been compressed, but in the actual code the current column settings should be maintained if possible -
```
{ TidyEscapeScripts, PP, "escape-scripts", BL, yes, ParseBool, boolPicks[, NULL] }, /* 20160227 - Issue #348 */
```
#### 3. Option Description
In `language_en.h`, in the section labelled **Options Documentation**. It can be anywhere, but usually a new option would be added just before the next section labelled **Console Application**.
Each entry is a structure with 3 members -
```
typedef struct languageDictionaryEntry {
uint key;
uint pluralForm;
ctmbstr value;
} languageDictionaryEntry;
```
The **`key`** is the option **`ID`**; The **`pluralForm`** is not used for options, and should be `0`; The **`value`** is the description string.
Some care has to be taken with the description string. The only html allowed here is `...`, `...`, `...`, `...`, and ` `. Entities, tags, attributes, etc., should be enclosed in `...`. Option values should be enclosed in `...`. It's very important that ` ` be self-closing! This string is processed to build the API documentation.
This is the desription added for this new option.
```
{
TidyEscapeScripts, 0,
"This option causes items that look like closing tags, like </g to be "
"escaped to <\\/g. Set this option to 'no' if you do not want this."
},
```
#### 4. Use in Code
This can be added anywhere in the code to change the current code action. While the testing of the option depends on the option type, the most common is `cfgBool( doc, id )`. Here is an example of where this new option is used -
```
/*\ if javascript insert backslash before /
* Issue #348 - Add option, escape-scripts, to skip
\*/
if ((TY_(IsJavaScript)(container)) && cfgBool(doc, TidyEscapeScripts))
{
```
#### Summary
That's about it. Just 4 places. Obviously the best idea it to search for an existing option **`ID`**, and follow where it is all defined and used, and copy that. It is not difficult.
; eof 20160310
tidy-html5-5.2.0/README/README.html 0000664 0000000 0000000 00000006252 12726015173 0016307 0 ustar 00root root 0000000 0000000
HTML Tidy with HTML5 support
CMake comes in two forms - command line and gui. Some installations only install one or the
other, but sometimes both. The build commands below are only for the command line use.
Also the actual build tools vary for each platform. But that is one of the great features of
cmake, it can generate variuous 'native' build files. Running cmake without any parameters will
list the generators available on that platform. For sure one of the common ones is "Unix
Makefiles", which needs autotools make installed, but many other generators are supported.
In windows cmake offers various versions of MSVC. Again below only the command line use of MSVC
is shown, but the tidy solution (*.sln) file can be loaded into the MSVC IDE, and the building
done in there.
Windows: cmake --build . --config Release
Unix/OS X: make
Install, if desired:
Windows: cmake --build . --config Release --target INSTALL
Unix/OS X: [sudo] make install
By default cmake sets the install path to /usr/local in unix. If you wanted the binary in say
/usr/bin instead, then in 2. above use -DCMAKEINSTALLPREFIX=/usr
In windows the default install is to C:\Program Files\tidy5, or C:/Program Files (x86)/tidy5,
which is not very useful. After the build the tidy[n].exe is in the Release directory, and can
be copied to any directory in your PATH environment variable, for global use.
If you need the tidy library built as a 'shared' (DLL) library, then in 2. add the command
-DBUILDSHAREDLIB:BOOL=ON. This option is OFF by default, so the static library is
built and linked with the command line tool for convenience.
History
This repository should be considered canonical for HTML Tidy as of 2015-January-15.
tidy-html5-5.2.0/README/README.md 0000664 0000000 0000000 00000010357 12726015173 0015744 0 ustar 00root root 0000000 0000000 # HTML Tidy with HTML5 support
## Prerequisites
1. git - http://git-scm.com/book/en/v2/Getting-Started-Installing-Git
2. cmake - http://www.cmake.org/download/
3. appropriate build tools for the platform
CMake comes in two forms - command line and gui. Some installations only install one or the other, but sometimes both. The build commands below are only for the command line use.
Also the actual build tools vary for each platform. But that is one of the great features of cmake, it can generate variuous 'native' build files. Running cmake without any parameters will list the generators available on that platform. For sure one of the common ones is "Unix Makefiles", which needs autotools make installed, but many other generators are supported.
In windows cmake offers various versions of MSVC. Again below only the command line use of MSVC is shown, but the tidy solution (*.sln) file can be loaded into the MSVC IDE, and the building done in there.
## Build the tidy library and command line tool
1. `cd build/cmake`
2. `cmake ../.. [-DCMAKE_INSTALL_PREFIX=/path/for/install]`
3. Windows: `cmake --build . --config Release`
Unix/OS X: `make`
4. Install, if desired:
Windows: `cmake --build . --config Release --target INSTALL`
Unix/OS X: `[sudo] make install`
By default cmake sets the install path to /usr/local in unix. If you wanted the binary in say /usr/bin instead, then in 2. above use -DCMAKE_INSTALL_PREFIX=/usr
Also, in unix if you want to build the release library without any debug `assert` in the code then add `-DCMAKE_BUILD_TYPE=Release` in step 2. This adds a `-DNDEBUG` macro to the compile switches. This is normally added in windows build for the `Release` config.
In windows the default install is to C:\Program Files\tidy5, or C:/Program Files (x86)/tidy5, which is not very useful. After the build the tidy[n].exe is in the Release directory, and can be copied to any directory in your PATH environment variable, for global use.
If you do **not** need the tidy library built as a 'shared' (DLL) library, then in 2. add the command -DBUILD_SHARED_LIB:BOOL=OFF. This option is ON by default. The static library is always built and linked with the command line tool for convenience in windows, and so the binary can be run as part of the man page build without the shared library being installed in unix.
## Build PHP with the tidy-html5 library
Due to API changes in the PHP source, "buffio.h" needs to be changed to "tidybuffio.h" in the file ext/tidy/tidy.c.
That is - prior to configuring php run this in the php source directory:
```
sed -i 's/buffio.h/tidybuffio.h/' ext/tidy/*.c
```
And then continue with (just an example here, use your own php config options):
```
./configure --with-tidy=/usr/local
make
make test
make install
```
## Important Links
- site: http://www.html-tidy.org/
- source: https://github.com/htacg/tidy-html5
- binaries: http://binaries.html-tidy.org
- bugs: https://github.com/htacg/tidy-html5/issues
- list: https://lists.w3.org/Archives/Public/html-tidy/
- api and quickref: http://api.html-tidy.org/
## Development
The default branch of this repository is `master`. This is the development branch, hopefully always `stable` source.
It will identify as library version X.odd.X. Use it to help us on the forever `bug` quest, addition of new features, options, ..., etc.
However, if you seek **release** code, then do `git branch -r`, and choose one of the `release/X.even.0` branches for your build and install...
This will always be the latest release branch. Important `bug` fixes thought relevant to this release, pushed back, may bump the library version to X.even.1, ..., etc, but will be remain known as `X.even`...
Some more details of the `Tidy Version` can be found in [VERSION.md](VERSION.md).
Concerning the `Tidy Code Style`, some notes can be found in [CODESTYLE.md](CODESTYLE.md).
If you want to contribute to Tidy, then read [CONTRIBUTING.md](CONTRIBUTING.md).
## History
This repository should be considered canonical for HTML Tidy as of 2015-January-15.
- This repository originally transferred from [w3c.github.com/tidy-html5][1].
- First moved to Github from [tidy.sourceforge.net][2].
[1]: http://w3c.github.com/tidy-html5/
[2]: http://tidy.sourceforge.net
tidy-html5-5.2.0/README/RELEASE.html 0000664 0000000 0000000 00000125471 12726015173 0016437 0 ustar 00root root 0000000 0000000
Release 5.2.0
commit 0db9b32e22568921b1f596d79f5b9f2ac17c3ea5 (HEAD, refs/remotes/origin/master, refs/remotes/origin/HEAD, refs/heads/release/5.2, refs/heads/master)
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Apr 4 18:14:33 2016 +0200
Issue #390 - Bump to 5.1.52 for this indent fix
commit 61a0a331fc783898aa2dab90627b8437042efe47
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Apr 4 18:02:26 2016 +0200
Issue #390 - fix indent with --hide-endtags yes.
The problem was, with --hide-endtags yes, a conditional pprint buffer
flush had nothing to flush, thus the indent was not adjusted.
To track down this bug added a lot of MSVC Debug code, but is only
existing if some additional items defined, so has no effect on the release
code.
This, what feels like a good fix, was first reported about 12 years ago by
@OlafvdSpek in SF Bugs 563. Hopefully finally closed.
commit 7598fdfff238e02d41706e6f264243dae3f54fcd
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Apr 3 17:54:46 2016 +0200
avoid DEBUG duplicate newline
commit 3e5e07ea1848e6abb24ab226611f29552a85593f
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Mar 31 14:50:47 2016 +0200
Issue #369 - Bump to version 5.1.51
commit 7777a71913f15a6ee0261eec3f4fd6290316a84a
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Mar 31 14:50:03 2016 +0200
Issue #369 - Remove Debug asserts
commit 086e4c948c056e45a612e9450f0599ca2789d8a6
Author: Geoff rpi McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 15:02:19 2016 +0000
remove gcc comment warning
commit 005f36106ad7de2c5d2f600b372d819f13f51b5d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 16:28:45 2016 +0200
Issue #377 - Bump version to 5.1.50
commit 59d6fc7022f7fde541bdef12e68da5f75b499cdb
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 16:28:08 2016 +0200
Issue #377 - If version XHTML5 available, return that.
commit cd08a709dbeee7a2ac66c6dab0025029e6036f6b
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 15:16:44 2016 +0200
Some improvements in build-me.bat
commit d9ce0fc0782d72795e8295cc29c0edafd7a6fe34
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 15:01:40 2016 +0200
Some improvements in build-me.bat
commit c19d221ddcef5469cb106fb1e497098b3bb35e89
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 14:19:07 2016 +0200
Issue #384 - bump to 5.1.49
commit 1830fdb97cd0a2e2d1e095c3eb7aaf2fb9269227
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 14:18:04 2016 +0200
Issue #384 - insert comments
commit 4b135d9b47a53beed36e8cfbe04a938f4f8a5e6c
Merge: aa1fc19 7d28b21
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 30 14:08:40 2016 +0200
Merge pull request #384 from seaburg/master
Fix skipping parsing character
commit aa1fc197d500d0a222b66a6999b50f02516c3d8b
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 27 19:57:41 2016 +0200
Issue #383 - Bump to 5.1.48 on this merge
commit e87f26c247b6a854303e547372c520c38154af79
Merge: 7d2ddee 1933205
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 27 19:54:54 2016 +0200
Merge pull request #388 from htacg/fr.po
Merge fr.po to master
commit 193320571bfc8f2208e2ffd5557628e2e63c127e
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Mar 26 20:20:42 2016 +0100
add WIP fr.po
commit 7d2ddee775368607e4b9d2a1cff89feecc27f41c
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Mar 24 11:38:04 2016 +0800
Add new `rebase` command to CLI.
This is intended to make it very, very easy to update the POT and all of the POs when
changes are made to `language_en.h`. Used without an sha-1 hash, untranslated strings
(i.e., the "source" strings) are updated in the POT/PO's.
However if you specify an --sha=HASH (or -c HASH) option, then the script will use git
to examine the `language_en.h` file from that specified commit, determing the strings
that have changed, and mark all of these strings as `fuzzy` in the POs. This will serve
as a flag to translators that the original has changed. In addition, this `fuzzy` flag
will appear in the headers as "(fuzzy) " in the item comments.
If a translator edits the header directly, he should remove the "(fuzzy )" in the
comment. Then when the PO is rebuilt, the fuzzy flag will be removed automatically.
The reverse is also true; if a translator is working with the PO, he or she should
clear the fuzzy flag and the comment will be adjusted accordingly in the generated
header.
commit a15f97ebcbb93ed58d51723dedb408b0078f5fe2
Merge: fb95ea2 d208222
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Mar 24 14:18:06 2016 +0100
Merge branch 'fr.po' of github.com:htacg/tidy-html5 into fr.po
commit fb95ea2ed2350a43f56cfef5c02d2d9d497a1227
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 23 19:53:51 2016 +0100
Issue #383 - Bump version to 5.1.47fr
commit 8671544beb7c5164d1e6e2d0608b9c5e64331604
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 23 19:52:56 2016 +0100
Issue #383 - Add a WIP language_fr.h to facilitate testing
commit 5feca8cfd6e335c5bfc7328368963ebce87dc9c6
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 23 19:42:03 2016 +0100
Issue #383 - correct another byte-by-byte output to message file.
As in the previous case these messages are already valid utf-8 text, and
thus, if output on a byte-by-byte basis, must not use WriteChar, except
for the EOL char.
Of course this output can be to either a user ouput file, if configured,
otherwise stderr.
commit ad7bdee3b96114ef963ee726fd3e50e8a9efb0f9
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Mar 24 11:00:47 2016 +0800
Added translator comments to new TidyEscapeScripts option, and updated POT and POs to reflect this.
commit a35352387348b48a5a851de237f206d9407685f8
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Mar 24 10:40:21 2016 +0800
Spaceing
commit d0ec84c169cf9eb4cb1b495a242152efcab4041d
Merge: 71d6ca1 9ecdf30
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Mar 24 10:37:37 2016 +0800
Merge branch 'master' into lang_help_enhance
commit 9ecdf3077401dddb254e0382aea78564ad5363d8
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Mar 22 10:35:03 2016 +0800
Localization fixes:
- Correct format specifiers.
- Fix missing trailing quote if following escaped quote. #385
- Don't put developer comments into generated headers unless --force-comments is used.
- Ruby 1.9.3 fix.
- Initial fuzzy support.
- Fix two character lang codes not working.
commit d20822230d8fe53bc2b7639f69c91c69b299d913
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 23 19:53:51 2016 +0100
Issue #383 - Bump version to 5.1.47fr
commit df4174f5fa6f8585f1ece2677396039dffb86f9a
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 23 19:52:56 2016 +0100
Issue #383 - Add a WIP language_fr.h to facilitate testing
commit 6cda2e02c865fdbe7e96cbcca41d4484fc15d1a4
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Mar 23 19:42:03 2016 +0100
Issue #383 - correct another byte-by-byte output to message file.
As in the previous case these messages are already valid utf-8 text, and
thus, if output on a byte-by-byte basis, must not use WriteChar, except
for the EOL char.
Of course this output can be to either a user ouput file, if configured,
otherwise stderr.
commit 71d6ca1392eab720a7a681302062f2feca799a19
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Mar 23 15:10:07 2016 +0800
Oops. Didn't commit es changes. This fixes that.
commit d54785c933c4a5b6cc2163de036f98067f581e1a
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Mar 23 14:56:36 2016 +0800
language help enhancements:
- Show the language Tidy is using.
- Update the POT and POs with the modified string.
- Regen language_es.h, which uses the string.
Note that the new header uses the new commentless behavior that's still
pending in another branch. In addition the proper c style hints have
been added to all PO's, as their previous absense was a bug.
commit 2cf03f7fa9575ded678ec19ece8a28496c47928f
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Mar 23 14:38:17 2016 +0800
Fix two character lang codes not working.
commit ee151f07f1d241838a988c275ff6bc4df4433da7
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Mar 23 13:27:17 2016 +0800
Ruby 1.9.3 fix.
commit 39e4f16b48209cd1d18fb890c7c0ce7b6a173a16
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Mar 22 11:26:32 2016 +0800
Don't put developer comments into generated headers unless --force-comments is used.
commit 3cd1a87c44d42bd91c349e101f8399b594c21f44
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Mar 22 11:01:41 2016 +0800
Fix missing trailing quote if following escaped quote. #385
commit 91e8e6bf1e24e651633b6ee2be6ce2b9c27efd91
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Mar 22 10:35:03 2016 +0800
Correct format specifiers.
commit a5ae647ee3b41127edf55f3e99f8ee3105edb28d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 20 01:05:36 2016 +0100
Issue #348 - Add README/OTPIONS.md on adding a new option
commit 3c8d9bf3f64b57d45cef3c3e9708715eb44d85f4
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 20 01:03:25 2016 +0100
Issue #348 - Bump to version 5.1.47
commit 000c6925bd1fdec0098d69d271fd0eecf60555d0
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 20 01:01:46 2016 +0100
Issue #348 - Add option 'escape-script', def = yes
commit e4bf52c51619daa563b5de1701d271cd2fa24db4
Author: Geoff R. McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Mar 19 19:56:27 2016 +0100
add a rentidy.sh script to keep old versions
commit 9e28261c71d0d088a4fedc2c9540ef01e2af8834
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Mar 19 19:49:58 2016 +0100
ignore vc 2008 vcproj files
commit 8a31aad0e35c192bde6fa4c995d96b6eede7ebba
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Mar 19 19:32:39 2016 +0100
Issues #379 #380 #383 - Bump to 5.1.46 for this merge of 'issue-380'
commit 370dab3b05f1bcaabe0dd1f151a6149171b928e8
Merge: 9a9acf2 0621576
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Mar 19 19:28:55 2016 +0100
Merge pull request #382 from htacg/issue-380
Merge Issue 378 and 380
commit 06215769aa297bea25fa260a70cfa39e4524fdf7
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Fri Mar 18 18:48:08 2016 +0100
Issue #383 - Bump version 5.1.45-Exp3
commit e6f1533d896eef9cabced6e6946f7749b49b1e85
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Fri Mar 18 18:47:00 2016 +0100
Issue #383 - Output message file text byte-by-byte
commit 7d28b21e60c3f5b4194e68d64d31cae6788bfcfc
Author: Evgeniy Yurtaev <evgeniyyurt _at_ gmail _dot_ com>
Date: Fri Mar 18 00:25:24 2016 +0400
Fix skipping parsing character
commit 9a9acf29cbdfdf72fc1460d7e58d05aa5e740363
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Mar 11 16:39:17 2016 +0800
Updated broken links in readme.
commit 68e69d54a02a8762831371aa453eeab198c55b37
Merge: b2c591c ca90fad
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 6 17:39:32 2016 +0100
Merge branch 'master' of github.com:htacg/tidy-html5
commit 98f32ddebbe8dd172c15b7d1c82fd7b1c5583ff3
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 6 17:38:48 2016 +0100
Issue #379 - Bump to version 5.1.45-Exp2
commit 8dda04f1df6a5b43664a55a8c510b3100808f99a
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Mar 6 17:31:00 2016 +0100
Issue #379 - Care about 'ix' going negative.
How this lasted so long in the code is a mystery! But of course it will
only be a read out-of-bounds if testing the first character in the lexer,
and it is a spacey char.
A big thanks to @gaa-cifasis for running ASAN tests on Tidy.
commit b83d5ffb03bbea12f442398118053839fa9cc2e0
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Mar 5 17:40:32 2016 +0100
Issue #380 - Bump to version 5.1.45-Exp1
commit 8eee85cb9e8d996d324fd54db67043305dcbbc40
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Mar 5 17:39:14 2016 +0100
Issue #380 - Experimental patch in issue-380 branch
commit b2c591c138a51b605fb5d82a02c24faf986701ed
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Fri Mar 4 19:39:21 2016 +0100
Issue #380 - Bump version to 5.1.45
Added more debug code to try to track this bug!
commit ca90fadb34d731038aaf303a9aae8947190b444a
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Fri Mar 4 19:39:21 2016 +0100
Issue #380 - Bump version to 5.1.45
Added more debug code to try to track this bug!
commit 0e6ed639d69449f16128ae2507c363a632c8c463
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Fri Mar 4 19:28:49 2016 +0100
Issue #380 - Add more MSVC debug
commit d0910270898648ad401000550974fa6b126027a1
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Mar 3 20:21:35 2016 +0100
Issue #377 add debug only output of constrained versions
commit 1dd06aa4b2060ddedfac328b7860094850c48779
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 29 19:59:41 2016 +0100
Issue #377 - Bump to 5.1.44 for this fix
commit 7bdc31af760acefbb415d1202f78837b09a26286
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 29 19:58:55 2016 +0100
Issue #377 - Table summary attribute also applies to XHTML5
commit 9a80938246fabe8368a7d77819a435405fbb9555
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 29 18:49:52 2016 +0100
Issue #314 - Bump to 5.1.43 for fix
commit 24c62cf0df325b1bfe0fb79c22b2191dd84b1018
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 29 18:49:15 2016 +0100
Issue #314 - Avoid head warning if show-body-only
commit b41318724ced103f06ea132284166c784b2f4c15
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Feb 24 19:24:46 2016 +0100
Issue #373 - bump version to 5.1.42 for this merge of branch 373
commit 771b5607f2b229441ae7e53a0458bda557d611e3
Merge: 8c13d27 23e689d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Feb 24 19:21:26 2016 +0100
Merge pull request #375 from htacg/issue-373
Issue 373
commit 23e689d14541f906bce2197702b22e34226d7d98
Merge: 9ba80b8 9cf97d5
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Feb 18 15:18:39 2016 +0100
Issue #373 - Merge branch 'issue-373' of github.com:htacg/tidy-html5 into issue-373
Conflicts: version.txt - set version 5.1.41issue-373
commit 9ba80b864e61c1df9e2ac09e4edcf78a985cd588
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Feb 18 15:12:11 2016 +0100
Issue #373 - Rebase of issue-373 branch to master
Updated version.txt to 5.1.41issue-373
commit 8c13d270ede8d47b74b2373d818b2841f799ee23
Merge: b91d525 63c0327
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Feb 18 13:58:23 2016 +0100
Merge branch 'master' of github.com:htacg/tidy-html5
commit b91d52592b69a152c2d07a8e7300fc07f83c5323
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Feb 18 13:57:47 2016 +0100
Fix to K&R C to compile with MSVC
commit 63c0327de18315a74b870177b1b64b97348bb054
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Feb 18 15:40:10 2016 +0800
Fixed typo in output strings.
commit be0e5f3a8bc5ce1afd3f4ba7b7850f85153e570a
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Feb 18 10:20:40 2016 +0800
External API merits patch bump.
commit e00f419f5de36793c9587b1d7d9133c95b3edfdb
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Feb 18 10:19:57 2016 +0800
Discovered some missing strings from tidyErrorFilterKeysStruct.
commit da8205b2dc730fff8946fbec7326a7400db6bdd8
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 20:07:00 2016 +0800
Regen'd POT, POs, and headers in order to capture documentation changes in all of them.
commit 7fbe76be0b3226fa0d85ee63af301fe15206460d
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 20:02:38 2016 +0800
Finished semantic html.
commit a78daccd3ce2cc5803aefd8a0d09bb341215b052
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 17:43:09 2016 +0800
Through TidyIndentSpaces.
commit a16e89c4f8e9fdfd626e09c10a8ce9fe700280b1
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 17:27:57 2016 +0800
Updated translator comments.
commit d30c2d7747af4445752d287eec087a9dee4a4d03
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 17:20:02 2016 +0800
XSL for man handles <var>. Updated comment and sample string.
commit f76c2615238c10051b5bb6b292833beb0a651dd1
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 15:56:21 2016 +0800
Tidy should only generate valid XML in console output, too.
commit f62e59d813f96fa1e76dc515ed34062657dc1117
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 14:17:18 2016 +0800
Correct CDATA declaration.
commit 6c181d5689353ff7e0d91ec259a538069c676e81
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 12:43:44 2016 +0800
Version bump, since we changed console API a bit.
commit cc59efb23d07e79dca7f59781f230ca9a4d29d55
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 12:35:20 2016 +0800
Add a `xml-error-strings` service to console app providing symbols developers can use with TidyErrorFilter3.
commit bc1e54d5b5d4d546c54cbce86732d991d1151f99
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 12:27:11 2016 +0800
Externalize the TidyReportFilter3 error codes, and provide iterators to loop through them.
commit b4d2bdf3bf9c4be8b5c07e6ba34e0bb691bb6aeb
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 11:20:28 2016 +0800
_Also_ output the raw option description in the -xml-options-strings service.
Improve documentation.
commit 720d5c25d2f1581c4004a7b5d85e3523129f34e7
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Feb 17 10:56:21 2016 +0800
Squelch compiler warning default type.
commit 7b8019c6ef054918266937c3335e395e724ac7d8
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 11:46:20 2016 +0800
Regenerated PO's for new strings.
commit 7246c7e3dc1cea3f224cd53fb5b4abb451c726d4
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 11:44:50 2016 +0800
Regenered POT for new strings.
commit dc15acb0f366d3b48c07d21374cb090d804c6640
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 11:20:22 2016 +0800
Remove /test/ from the repository. Regression testing is still very important, and so
tests and tools will be migrated to a separate development repository.
commit 468cc02cf3289b9ad5b2716c3eabc58f33735d41
Merge: 813b126 97abad0
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 11:12:32 2016 +0800
Merge pull request #372 from htacg/attrdict_phase2
Attrdict phase2 - enforce strict tags and attributes
commit 97abad0c0554f382867e9a39e7d1e38656dbc11d
Merge: c62127b 813b126
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 11:11:36 2016 +0800
Bump to 5.1.39 for merging.
Merge branch 'master' into attrdict_phase2
commit 813b12640e175ba1940214005be1fc404c739c2b
Merge: a955363 3431dd0
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 11:08:53 2016 +0800
Merge pull request #370 from htacg/attrdict_phase1
Address #346 and shrink attrdict.c.
commit 3431dd05a4f5e144aa95254ad49f10aa82c20034
Merge: 7df66c4 a955363
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 11:07:32 2016 +0800
Merge branch 'master' into attrdict_phase1
Bump version to 5.1.38
commit 7df66c45daade612654e38b4f6652f84872de134
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 10:20:34 2016 +0800
Update version.txt
commit a95536394d930eefb5d1c45500c664b5f39e7a2f
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 10:19:06 2016 +0800
Bump to 5.1.37
commit 1e4f7dd0f1f2af50741a85c36e76f852e52d6901
Merge: cf1adc6 03a643f
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 10:18:26 2016 +0800
Merge pull request #368 from htacg/issue-341
Issue #341
commit cf1adc6d9d6945a4c4164931f51ec07d2113822a
Merge: a4f4255 593e1df
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Tue Feb 16 10:16:46 2016 +0800
Merge pull request #366 from hguemar/master
Fix RPM generation
commit 9cf97d536b8016121d1afb59749d95dc1a9801bc
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 15 12:57:22 2016 +0100
Issue #373 - Avoid a null added to output.
This bug was first openned in 2009 by Christophe Chenon, as bug sf905 but
the patch provided then never made it into the source.
Now appears fixed, 7 years later!
commit a4f425546f924a4801d1d389b8eed818324adac7
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Feb 14 18:11:57 2016 +0100
Improve MSVC DEBUG output.
Previous only output the first 8 characters, followed by an elipse if more
than 8. Now return first up to 19 chars. If nore than 19, return first 8,
followed by an elipse, followed by the last 8 characters.
This is in the get_text_string service, which is only used if MSVC and not
NDEBUG.
commit c66bb848f232e24e10a19851264f9e4c24d2237f
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Feb 13 18:34:36 2016 +0100
Improve tidySaveString API documentation.
This was suggested by Kevin Locke back in SF bug 917 Nov, 2009. Has taken
some time to filter through!
commit c62127b9bd674eafb56412bfde44ff7c478baae3
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Feb 13 12:33:02 2016 +0800
Default to NO at this point.
commit 8b5771cf24c0a0b440588999cf6af424d18533f5
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Feb 13 12:26:19 2016 +0800
Word2000
Added messages that would otherwise be missed in post-processing, after cleanup.
commit 2cdedb4a630f3363308286643a03aecdc5949aad
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Feb 13 11:53:53 2016 +0800
Forgot one file...
commit 896b00238b71d63f9ddb6e65b63fb1955cecd5e9
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Feb 13 11:53:40 2016 +0800
Forgot one file...
commit 2ade3357a927f5139bca62c6c62d1514f467dfad
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Feb 13 11:31:16 2016 +0800
Phase 2
This is a MUCH SANER approach to what I was trying to do (now that I screwed up enough internals to understand some of them!
At this point there are zero exit state reversions, and zero markup reversions! There are still 21 errout reversions; I'll
annotate and adjust as necessary.
commit e947d296e49f9e14a2e8af8212179411a79975e1
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Feb 12 20:49:14 2016 +0800
Handle some issues with misusing VERS_HTML5 in the doctype.
commit c81a151da51d2f5ad2a0ccfe71196a3a69f3746f
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Feb 12 20:46:49 2016 +0800
Add VERS_STRICT to identify future strict document types.
commit 74604fd52b606fdbd914e9abd1588a9fe8f3b0bd
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Feb 12 20:44:03 2016 +0800
Hard-coded checks are redundant with updates to `attrdict.c`.
commit 429703dce46db84e9ff4b191f7adbe088787fa13
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Feb 12 19:34:19 2016 +0800
Because the previous effort #350 grew too fast and there was a LOT of side effects to
my changes, I'm starting over with this. Comments in the PR thread.
This commit reduces the size of attrdict.c while causing only a single errout
regression that is justified.
commit 03a643f7815af5c3fbf572acb728fd438df60e83
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 8 15:12:23 2016 +0100
Issue #341 - No token can be inserted if istacksize == 0!
commit 58229b7e2485b9d590e9289242c402f882a29b6b
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 8 15:10:38 2016 +0100
Issue #341 - Bump to version 5.1.37Test for this fix
commit fbde392af3b26c44628b1f4365ee9c662d37f9db
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Feb 5 14:59:12 2016 +0800
- Removed documentation generation from this repository.
- Removed documentation generation from CMake.
- These functions are now available in the api repository.
- Changed documentation directory to man to better illustrate its purpose.
commit 593e1df6ec36d150030a48d6b8ebdeadd0e617fd
Author: Haikel Guemar <hguemar _at_ fedoraproject _dot_ org>
Date: Thu Feb 4 08:40:49 2016 +0100
Fix RPM generation
CPack generated RPM failed to install due to the RPM
owning directories owned by filesystem packages.
Exclude mandir directories from CPack.
Resolves https://github.com/htacg/tidy-html5/issues/364
commit 0f3cab930a3fc1b3a8eb3ff11fc584b13d37d3db
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 1 20:10:23 2016 +0100
Issue #345 - bump to 5.1.36 for this fix
commit 7d0d8a853a01004572d27e47b5c1146361816271
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 1 20:07:55 2016 +0100
Issue #345 - discard leading spaces in href
commit e8ca2aa5f307d8900c36747dd9588934ed1b259d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 1 19:45:43 2016 +0100
Issue #342 - bump to version 5.1.35 for this fix
commit 7f0d5c31e6b6fa9f5426a669f3fd246218f5f607
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 1 19:44:30 2016 +0100
If no doctype, allow user doctype to reset table - Issue #342
commit 6abb8b7a3ce14ca5ae596ec6681055bb4634f269
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Feb 1 19:27:28 2016 +0100
Add new primary language_en.h to sources.
Add the ever present language_en.h to the sources. This does nothing
really, but is important in MSVC IDE project source searches.
Also added win32tc.h even though it is not presently used.
commit c1f94c066c9683e7bc2b05d6d60cdcaf8566b09b
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Jan 30 20:47:20 2016 +0100
Tidy up some debug only code.
After @sria91 added #360 merge, added a little more improvement...
commit 328308cbb5f72ce8a93976da7527603051276dcf
Merge: 22998e8 9a0af48
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Jan 30 20:31:32 2016 +0100
Merge pull request #360 from sria91/master
fixed a NULL node bug in debug build
commit 9a0af48a4e12b7bc7e81daee499ae455c6118036
Author: Srikanth Anantharam <sria91 _at_ gmail _dot_ com>
Date: Sun Sep 13 10:32:05 2015 +0530
fixed a NULL node bug in debug build
commit 22998e81e832b105c69d6bdba80697805ddb69bf
Merge: 7b09cae dca50d4
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Jan 30 16:02:39 2016 +0800
Merge pull request #359 from htacg/localize_rc
HTML Tidy now can be localized.
commit dca50d4077bbb28778e10300eea0bbd05c8cf796
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Jan 30 16:02:00 2016 +0800
Version bump prior to rolling into master.
commit 3553cbab1f78011d95e334b76c4f1ee68c256436
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Jan 29 17:27:44 2016 +0800
One more README update.
commit 9ae15f45a7e1493dbeb7f47fcf1070f312e0313f
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Jan 29 11:11:53 2016 +0800
Consistent tabs
Fixed tabs in template file, and regen'd all related files.
commit 53f2a2da2ae7fdf19198ae690514b39494cd9819
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Wed Jan 27 11:48:38 2016 +0800
msgunfmt works properly with escaped hex.
commit 17e50f26420dfd3c892354b1aec51554b2342161
Author: Martin von Gagern <Martin _dot_ vGagern _at_ gmx _dot_ net>
Date: Tue Jan 26 15:31:07 2016 +0100
Encode UTF-8 strings to hex escapes in header files
commit bf70824cc27640a92f66b2d36ddc2eb71f323b3f
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Mon Jan 25 20:58:55 2016 +0800
- Add TidyReportFilter3, which removes translation strings completely from the equation. It would be a good idea to deprecate TidyReportFilter2, which is vulnerable to changing strings in Tidy source.
- Documentation reminders for future enum changes.
- Documentation updates.
commit d505869910b019731c160fe3b3c944fb5026f3d6
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Jan 15 12:06:15 2016 +0800
Localization Support added to HTML Tidy
- Languages can now be added to Tidy using standard toolchains.
- Tidy's help output is improved with new options and some reorganization.
commit 7b09caee37b5e7cb64122ff09b9625d241b0d6ec
Merge: ce6c7de a81885d
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Jan 21 17:05:04 2016 +0800
Merge pull request #351 from josephgrossberg/master
looks like a pre-processor left "; eof" in some of the outputted mark…
commit a81885d154165c0248d123255c327f7df410d061
Author: Joe Grossberg <josephgrossberg+github _at_ gmail _dot_ com>
Date: Wed Jan 20 16:53:00 2016 -0800
looks like a pre-processor left "; eof" in some of the outputted markdown files
commit ce6c7de2d9db9b47431566a22d0de84a5cd14ead
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Jan 7 11:52:58 2016 +0800
Bump version for Mac OS X Fix, addresses #339.
commit 680adfd96491ee8060b93b13ddf7c240eff1f343
Merge: 0005841 26e7d9d
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Jan 7 11:51:46 2016 +0800
Merge pull request #340 from htacg/encoding_fixes
Fixes Mac OS X encoding issues and harmonizes output across platforms.
commit 26e7d9d4b04d07a5d42d549078be834c5e8be461
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Dec 31 13:57:34 2015 +0800
Fixes Mac OS X encoding issues and harmonizes output across platforms.
Previously Tidy produced different output based on the compilation target, NOT based on
the file encoding and specified options. Every platform was equal except Mac OS. Now unless
the encoding is specifically set to a Mac file type, all encoding assumptions are the same
across platforms.
commit 0005841cfeb4081e5ba2219308f70143b5c77e5f
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Wed Dec 23 00:51:01 2015 +0100
Drop back to 2.8.7 for Travis CI use
commit 2dd699940bcf7f3592ccee625205ad3543934264
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Tue Dec 8 01:29:39 2015 +0100
Add W3C validation for sample html
commit 99428561642b830267dad334868eacae837f2c39
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Dec 7 12:42:13 2015 +0100
Issue #308 - Bump version to 5.1.32
commit 48fbcbfa78bf9fcd595d95482cf88906a59498b2
Merge: 0c6ccd8 b206331
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Dec 7 12:30:34 2015 +0100
Merge branch 'issue-308' to fix warning and release memory (#308)
commit 0c6ccd884a531135462ba00bb29f55f3888cecef
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Dec 6 18:55:03 2015 +0100
Some additions to CONTRIBUTING.md
commit b206331c55ab1ecab5b5c55948da4667cf5d55c6
Merge: 78f2d52 885e85d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 17:03:33 2015 +0100
Merge branch 'issue-308' of github.com:htacg/tidy-html5 into issue-308
commit 902c961619dbc2911d1f0bcad03249e1b4deb1fe
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 17:01:31 2015 +0100
Some updates of the README.md
commit d68e9c45d071b207af780bb7ad737d12abb05422
Merge: 59f60d1 e0fdbba
Author: Geoff R. McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 16:22:45 2015 +0100
Merge branch 'master' of github.com:htacg/tidy-html5
commit 59f60d1a79aa92e7327d28263fd28d16af7eac21
Author: Geoff R. McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 16:22:18 2015 +0100
update test 443576 msg
commit 78f2d52cdd3c6637d74532258f7643bdfcd6cc52
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Nov 30 17:55:50 2015 +0100
Issue #308 - remove bad warn, bad assert, and free discarded
commit e0fdbba8b062bb5c778cb8ffe90e44582ff0f28c
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 14:28:46 2015 +0100
For test 500236 need .xml extent
commit 8f8f40fe52e38cae6bd7b929d3cbb47840748295
Author: Geoff R. McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 14:27:16 2015 +0100
for test 500236 need .xml extent
commit 7f131d3c7906b96b324cfa7ca86aaedec64a424b
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 13:48:13 2015 +0100
Update to new INSERTING_AUTO_ATTRIBUTE message - #324 #320
commit 5f8aac98df913a8a54986048211d81a3805cfe45
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 13:02:33 2015 +0100
Reverted #327 bumped to 5.1.31
commit 9caecb80cf632cf0d332922e96f408ac19a09f6e
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Dec 5 12:45:59 2015 +0100
Revert "Fix for head closing tag not reported (#327)"
This reverts commit 61cfcb15550bfa5b266cb238d0e34b18d810bad9.
This added an inconsistent warning about a missing optional close tag. In
general tidy does not report such optional close tags. See issue #327 for
some discussion on this.
commit 121fe86bc636d708aabbce3a5a3ba02ba9cf9903
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Fri Dec 4 18:32:48 2015 +0100
Issue #326 - Bump to version 5.1.30
commit e5038f0bc91dfcc45c0805ab3a95f42a9d69d341
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Fri Dec 4 18:31:24 2015 +0100
Issue #326 - Allow linkage choice TIDY_CONSOLE_SHARED
commit 34eb16b5da5474261c6620fe135339e687951498
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Dec 3 19:38:13 2015 +0100
Merge MinGW_build branch to version 5.1.29 (#311)
Added support for the __MINGW32__ macro of the MinGW (gcc) compiler.
Small WIN32 code changes where some MS specific defines and API
extensions needed to fall back to the normal API.
Removed the MinGW build version extension. In distribution this is a well
formed WIN32 app, perhaps renamed to tidy-MinGW.exe.
commit 1c6069ae9901cfee742fd4728000c80b5f1e255d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Dec 3 19:36:24 2015 +0100
Remove MinGW compile rc (#311)
commit 3b13cd8076b87fbd745899c3a1be813f04e2b0a0
Merge: b2c8060 77e053d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Dec 3 19:18:07 2015 +0100
Merge branch 'mingw-build'
commit 885e85d0a24689968e3dafe36ea0df0e294caa2a
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Nov 30 17:55:50 2015 +0100
Issue #308 - remove bad warn, bad assert, and free discarded
commit b2c806063a343f8ad80d514ebb74a8f8db34714d
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Nov 29 13:03:05 2015 +0100
Kick '5' off name
commit 4c848c57bc8da6e274a413b102926429b7d0636b
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sun Nov 29 13:24:01 2015 +0800
Bumped version.
commit 61cfcb15550bfa5b266cb238d0e34b18d810bad9
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sun Nov 29 13:21:49 2015 +0800
Fix for head closing tag not reported (#327)
commit 3708d429bcacb67ec27904a07b814f6225c117d9
Merge: dd4eb46 8737941
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sun Nov 29 12:48:22 2015 +0800
Merge pull request #325 from htacg/progress_callback
Progress callback
commit 873794162ae45356e77a2dce5a3fd2079faad9dc
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sun Nov 29 07:39:33 2015 +0800
Callback added to XML printer, too; fixed off-by-one error.
commit 77e053d582e5ea6cba64fe959f70e4c0ab3d612c
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Nov 28 15:25:24 2015 +0100
Issue #311 - Add MinGW to the version
commit dc969f30d5321f249eef7929d020e4543f8d8a81
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sat Nov 28 15:14:53 2015 +0100
Issue #311 - small changes for MinGW32 build
commit 3b8ad7482e34a2dc109e9df34c8d0a38b3909db0
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Nov 28 16:02:35 2015 +0800
This is probably best as void.
commit 4adc07fd659ec0d40864b04a94d85dd542d0e5d0
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Nov 28 15:43:34 2015 +0800
Removed the one callback per line filter. Library user can filter this himself.
commit dcd8f16f7318debea87ce666d4dde7d61eaa96e0
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Nov 28 15:34:23 2015 +0800
Tidying progress callback implemented.
commit 34d456aa80cffea38d7b5819653a3471adb28006
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Sat Nov 28 14:16:17 2015 +0800
Make pretty printer keep track of line numbers as it prints.
commit dd4eb46bb320c6ab06b75d28961f9f78c80f6702
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Nov 27 09:50:33 2015 +0800
Make the new README less annoying.
commit 501c3fb6166c4d0b6065f16e772c7d5d0f192cd1
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Nov 27 09:47:09 2015 +0800
Version bump given the different output now produced.
commit 3a3836618b98e49e62fe0ee75d5d7dadeb132ead
Merge: c65cf43 9834cc1
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Nov 27 09:46:17 2015 +0800
Merge pull request #324 from htacg/fix_img_alt
- Addresses #320
commit 9834cc17ad9ba3ea3973cba198dcc8003a96dd08
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Nov 27 09:45:26 2015 +0800
Style cleanup for previous commit.
commit 1c963acb58f5ed755940d923e9326dfd53406eec
Merge: 933fc3d c65cf43
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Nov 27 09:36:32 2015 +0800
Merge branch 'master' into fix_img_alt
commit c65cf430613b8df21a21c73b10e18f944b73d440
Merge: db4f647 6323473
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Fri Nov 27 09:04:19 2015 +0800
Merge pull request #323 from htacg/squelch_null_prefix
Allows null value css-prefix to be used in a config file without issu…
commit 933fc3d236cd870ec3cd638e91eea69b47a76d47
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Nov 26 13:23:43 2015 +0800
- Addresses #320
- Different error output depending on whether or not the `alt-text` option was given a value.
commit 63234735d880e699104272a00d5767f743fb6e65
Author: Jim Derry <balthisar _at_ gmail _dot_ com>
Date: Thu Nov 26 11:21:48 2015 +0800
Allows null value css-prefix to be used in a config file without issuing a warning.
commit db4f6473ed70d55fb1f375d8b18040254aad4aec
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Nov 26 00:58:07 2015 +0100
Issue #321 - bump v 5.1.27 for #322 PR - thanks
commit 2522730e3c5886422fd929074d0514fbfabfe3be
Merge: 0ef4493 71d9638
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Thu Nov 26 00:54:55 2015 +0100
Merge pull request #322 from benkasminbullock/master
Don't push back non-A tokens.
commit 71d963844897a6864097d4bc36501a97ff314e40
Author: Ben Bullock <benkasminbullock _at_ gmail _dot_ com>
Date: Wed Nov 25 18:00:45 2015 +0900
Don't push back non-A tokens.
commit 0ef4493ae8bdc4b8fec125fecf4e1dcc95c30fb1
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Tue Nov 24 19:29:52 2015 +0100
Issue #319 - bump to 5.1.26 for merge of buffer fix
commit b8e4f6e21eb153f4be8bfbae9551f68d5780fba1
Merge: f567088 1ef5ba7
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Tue Nov 24 19:21:28 2015 +0100
Merge pull request #319 from CMB/memfix
Fix a tiny buffer overflow.
commit 1ef5ba796882fe9f68254dfb79f995d9c29cfe85
Author: Christopher Brannon <chris _at_ the-brannons _dot_ com>
Date: Mon Nov 23 12:28:00 2015 -0800
Fix a tiny buffer overflow.
commit f567088a68b0be91c31640c9c5904082a500444f (tag: refs/tags/5.1.25)
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Mon Nov 23 16:07:04 2015 +0100
Update verhist.log to 5.1.25
commit b58aa1c26a24609e05881639d540d422a40f09e6
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Nov 22 20:43:12 2015 +0100
Issue #307 - add a ref link in comments
commit 2388fb017565bf09b65a400175de800154909955
Author: Geoff McLane <ubuntu _at_ geoffair _dot_ info>
Date: Sun Nov 22 18:46:00 2015 +0100
Issue #307, #167, #169 - regression of nestd anchors
This log has 177 commits by 10 authors: Joe Grossberg 1; Evgeniy Yurtaev 1; Geoff R. McLane 93; Jim Derry 76; Haikel Guemar 1; Martin von Gagern 1; Christopher Brannon 1; Srikanth Anantharam 1; Ben Bullock 1; Geoff rpi McLane 1;
Date: from Sun Sep 13 10:32:05 2015 +0530 to Mon Apr 4 18:14:33 2016 +0200 (204 days)
\#include <tidy.h>
\#include <tidybuffio.h>
\#include <stdio.h>
\#include <errno.h>
int main(int argc, char **argv )
{
const char* input = "<title>Foo</title><p>Foo!";
TidyBuffer output;
TidyBuffer errbuf;
int rc = -1;
Bool ok;
TidyDoc tdoc = tidyCreate(); // Initialize "document"
tidyBufInit( &output );
tidyBufInit( &errbuf );
printf( "Tidying:\t\%s\\n", input );
ok = tidyOptSetBool( tdoc, TidyXhtmlOut, yes ); // Convert to XHTML
if ( ok )
rc = tidySetErrorBuffer( tdoc, &errbuf ); // Capture diagnostics
if ( rc >= 0 )
rc = tidyParseString( tdoc, input ); // Parse the input
if ( rc >= 0 )
rc = tidyCleanAndRepair( tdoc ); // Tidy it up!
if ( rc >= 0 )
rc = tidyRunDiagnostics( tdoc ); // Kvetch
if ( rc > 1 ) // If error, force output.
rc = ( tidyOptSetBool(tdoc, TidyForceOutput, yes) ? rc : -1 );
if ( rc >= 0 )
rc = tidySaveBuffer( tdoc, &output ); // Pretty Print
if ( rc >= 0 )
{
if ( rc > 0 )
printf( "\\nDiagnostics:\\n\\n\%s", errbuf.bp );
printf( "\\nAnd here is the result:\\n\\n\%s", output.bp );
}
else
printf( "A severe error (\%d) occurred.\\n", rc );
tidyBufFree( &output );
tidyBufFree( &errbuf );
tidyRelease( tdoc );
return rc;
}
** @{
*/
/** The primary creation of a TidyDoc.
** This must be the first call before most of the Tidy API which require the TidyDoc parameter.
** When completed tidyRelease( TidyDoc tdoc ); should be called to release all memory
*/
TIDY_EXPORT TidyDoc TIDY_CALL tidyCreate(void);
/** Create a Tidoc supplying the TidyAllocator.
** See the TidyAllocator structure for creating an allocator
*/
TIDY_EXPORT TidyDoc TIDY_CALL tidyCreateWithAllocator( TidyAllocator *allocator );
/** Free all memory and release the TidyDoc.
** TidyDoc can not be used after this call.
*/
TIDY_EXPORT void TIDY_CALL tidyRelease( TidyDoc tdoc );
/** Let application store a chunk of data w/ each Tidy instance.
** Useful for callbacks.
*/
TIDY_EXPORT void TIDY_CALL tidySetAppData( TidyDoc tdoc, void* appData );
/** Get application data set previously */
TIDY_EXPORT void* TIDY_CALL tidyGetAppData( TidyDoc tdoc );
/** Get release date (version) for current library
** @deprecated tidyReleaseDate() is deprecated in favor of semantic
** versioning and should be replaced with tidyLibraryVersion().
*/
TIDY_EXPORT ctmbstr TIDY_CALL tidyReleaseDate(void);
/** Get version number for the current library */
TIDY_EXPORT ctmbstr TIDY_CALL tidyLibraryVersion(void);
/* Diagnostics and Repair
*/
/** Get status of current document. */
TIDY_EXPORT int TIDY_CALL tidyStatus( TidyDoc tdoc );
/** Detected HTML version: 0, 2, 3 or 4 */
TIDY_EXPORT int TIDY_CALL tidyDetectedHtmlVersion( TidyDoc tdoc );
/** Input is XHTML? */
TIDY_EXPORT Bool TIDY_CALL tidyDetectedXhtml( TidyDoc tdoc );
/** Input is generic XML (not HTML or XHTML)? */
TIDY_EXPORT Bool TIDY_CALL tidyDetectedGenericXml( TidyDoc tdoc );
/** Number of Tidy errors encountered. If > 0, output is suppressed
** unless TidyForceOutput is set.
*/
TIDY_EXPORT uint TIDY_CALL tidyErrorCount( TidyDoc tdoc );
/** Number of Tidy warnings encountered. */
TIDY_EXPORT uint TIDY_CALL tidyWarningCount( TidyDoc tdoc );
/** Number of Tidy accessibility warnings encountered. */
TIDY_EXPORT uint TIDY_CALL tidyAccessWarningCount( TidyDoc tdoc );
/** Number of Tidy configuration errors encountered. */
TIDY_EXPORT uint TIDY_CALL tidyConfigErrorCount( TidyDoc tdoc );
/* Get/Set configuration options
*/
/** Load an ASCII Tidy configuration file */
TIDY_EXPORT int TIDY_CALL tidyLoadConfig( TidyDoc tdoc, ctmbstr configFile );
/** Load a Tidy configuration file with the specified character encoding */
TIDY_EXPORT int TIDY_CALL tidyLoadConfigEnc( TidyDoc tdoc, ctmbstr configFile,
ctmbstr charenc );
TIDY_EXPORT Bool TIDY_CALL tidyFileExists( TidyDoc tdoc, ctmbstr filename );
/** Set the input/output character encoding for parsing markup.
** Values include: ascii, latin1, raw, utf8, iso2022, mac,
** win1252, utf16le, utf16be, utf16, big5 and shiftjis. Case in-sensitive.
*/
TIDY_EXPORT int TIDY_CALL tidySetCharEncoding( TidyDoc tdoc, ctmbstr encnam );
/** Set the input encoding for parsing markup.
** As for tidySetCharEncoding but only affects the input encoding
**/
TIDY_EXPORT int TIDY_CALL tidySetInCharEncoding( TidyDoc tdoc, ctmbstr encnam );
/** Set the output encoding.
**/
TIDY_EXPORT int TIDY_CALL tidySetOutCharEncoding( TidyDoc tdoc, ctmbstr encnam );
/** @} end Basic group */
/** @defgroup Configuration Configuration Options
**
** Functions for getting and setting Tidy configuration options.
** @{
*/
/** Applications using TidyLib may want to augment command-line and
** configuration file options. Setting this callback allows an application
** developer to examine command-line and configuration file options after
** TidyLib has examined them and failed to recognize them.
**/
typedef Bool (TIDY_CALL *TidyOptCallback)( ctmbstr option, ctmbstr value );
TIDY_EXPORT Bool TIDY_CALL tidySetOptionCallback( TidyDoc tdoc, TidyOptCallback pOptCallback );
/** Get option ID by name */
TIDY_EXPORT TidyOptionId TIDY_CALL tidyOptGetIdForName( ctmbstr optnam );
/** Get iterator for list of option */
/**
Example:
*/
TIDY_EXPORT TidyIterator TIDY_CALL tidyGetOptionList( TidyDoc tdoc );
/** Get next Option */
TIDY_EXPORT TidyOption TIDY_CALL tidyGetNextOption( TidyDoc tdoc, TidyIterator* pos );
/** Lookup option by ID */
TIDY_EXPORT TidyOption TIDY_CALL tidyGetOption( TidyDoc tdoc, TidyOptionId optId );
/** Lookup option by name */
TIDY_EXPORT TidyOption TIDY_CALL tidyGetOptionByName( TidyDoc tdoc, ctmbstr optnam );
/** Get ID of given Option */
TIDY_EXPORT TidyOptionId TIDY_CALL tidyOptGetId( TidyOption opt );
/** Get name of given Option */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetName( TidyOption opt );
/** Get datatype of given Option */
TIDY_EXPORT TidyOptionType TIDY_CALL tidyOptGetType( TidyOption opt );
/** Is Option read-only? */
TIDY_EXPORT Bool TIDY_CALL tidyOptIsReadOnly( TidyOption opt );
/** Get category of given Option */
TIDY_EXPORT TidyConfigCategory TIDY_CALL tidyOptGetCategory( TidyOption opt );
/** Get default value of given Option as a string */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetDefault( TidyOption opt );
/** Get default value of given Option as an unsigned integer */
TIDY_EXPORT ulong TIDY_CALL tidyOptGetDefaultInt( TidyOption opt );
/** Get default value of given Option as a Boolean value */
TIDY_EXPORT Bool TIDY_CALL tidyOptGetDefaultBool( TidyOption opt );
/** Iterate over Option "pick list" */
TIDY_EXPORT TidyIterator TIDY_CALL tidyOptGetPickList( TidyOption opt );
/** Get next string value of Option "pick list" */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetNextPick( TidyOption opt, TidyIterator* pos );
/** Get current Option value as a string */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetValue( TidyDoc tdoc, TidyOptionId optId );
/** Set Option value as a string */
TIDY_EXPORT Bool TIDY_CALL tidyOptSetValue( TidyDoc tdoc, TidyOptionId optId, ctmbstr val );
/** Set named Option value as a string. Good if not sure of type. */
TIDY_EXPORT Bool TIDY_CALL tidyOptParseValue( TidyDoc tdoc, ctmbstr optnam, ctmbstr val );
/** Get current Option value as an integer */
TIDY_EXPORT ulong TIDY_CALL tidyOptGetInt( TidyDoc tdoc, TidyOptionId optId );
/** Set Option value as an integer */
TIDY_EXPORT Bool TIDY_CALL tidyOptSetInt( TidyDoc tdoc, TidyOptionId optId, ulong val );
/** Get current Option value as a Boolean flag */
TIDY_EXPORT Bool TIDY_CALL tidyOptGetBool( TidyDoc tdoc, TidyOptionId optId );
/** Set Option value as a Boolean flag */
TIDY_EXPORT Bool TIDY_CALL tidyOptSetBool( TidyDoc tdoc, TidyOptionId optId, Bool val );
/** Reset option to default value by ID */
TIDY_EXPORT Bool TIDY_CALL tidyOptResetToDefault( TidyDoc tdoc, TidyOptionId opt );
/** Reset all options to their default values */
TIDY_EXPORT Bool TIDY_CALL tidyOptResetAllToDefault( TidyDoc tdoc );
/** Take a snapshot of current config settings */
TIDY_EXPORT Bool TIDY_CALL tidyOptSnapshot( TidyDoc tdoc );
/** Reset config settings to snapshot (after document processing) */
TIDY_EXPORT Bool TIDY_CALL tidyOptResetToSnapshot( TidyDoc tdoc );
/** Any settings different than default? */
TIDY_EXPORT Bool TIDY_CALL tidyOptDiffThanDefault( TidyDoc tdoc );
/** Any settings different than snapshot? */
TIDY_EXPORT Bool TIDY_CALL tidyOptDiffThanSnapshot( TidyDoc tdoc );
/** Copy current configuration settings from one document to another */
TIDY_EXPORT Bool TIDY_CALL tidyOptCopyConfig( TidyDoc tdocTo, TidyDoc tdocFrom );
/** Get character encoding name. Used with TidyCharEncoding,
** TidyOutCharEncoding, TidyInCharEncoding */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetEncName( TidyDoc tdoc, TidyOptionId optId );
/** Get current pick list value for option by ID. Useful for enum types. */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetCurrPick( TidyDoc tdoc, TidyOptionId optId);
/** Iterate over user declared tags */
TIDY_EXPORT TidyIterator TIDY_CALL tidyOptGetDeclTagList( TidyDoc tdoc );
/** Get next declared tag of specified type: TidyInlineTags, TidyBlockTags,
** TidyEmptyTags, TidyPreTags */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetNextDeclTag( TidyDoc tdoc,
TidyOptionId optId,
TidyIterator* iter );
/** Get option description */
TIDY_EXPORT ctmbstr TIDY_CALL tidyOptGetDoc( TidyDoc tdoc, TidyOption opt );
/** Iterate over a list of related options */
TIDY_EXPORT TidyIterator TIDY_CALL tidyOptGetDocLinksList( TidyDoc tdoc,
TidyOption opt );
/** Get next related option */
TIDY_EXPORT TidyOption TIDY_CALL tidyOptGetNextDocLinks( TidyDoc tdoc,
TidyIterator* pos );
/** @} end Configuration group */
/** @defgroup IO I/O and Messages
**
** By default, Tidy will define, create and use
** instances of input and output handlers for
** standard C buffered I/O (i.e. FILE* stdin,
** FILE* stdout and FILE* stderr for content
** input, content output and diagnostic output,
** respectively. A FILE* cfgFile input handler
** will be used for config files. Command line
** options will just be set directly.
**
** @{
*/
/*****************
Input Source
*****************/
/** Input Callback: get next byte of input */
typedef int (TIDY_CALL *TidyGetByteFunc)( void* sourceData );
/** Input Callback: unget a byte of input */
typedef void (TIDY_CALL *TidyUngetByteFunc)( void* sourceData, byte bt );
/** Input Callback: is end of input? */
typedef Bool (TIDY_CALL *TidyEOFFunc)( void* sourceData );
/** End of input "character" */
#define EndOfStream (~0u)
/** TidyInputSource - Delivers raw bytes of input
*/
TIDY_STRUCT
typedef struct _TidyInputSource
{
/* Instance data */
void* sourceData; /**< Input context. Passed to callbacks */
/* Methods */
TidyGetByteFunc getByte; /**< Pointer to "get byte" callback */
TidyUngetByteFunc ungetByte; /**< Pointer to "unget" callback */
TidyEOFFunc eof; /**< Pointer to "eof" callback */
} TidyInputSource;
/** Facilitates user defined source by providing
** an entry point to marshal pointers-to-functions.
** Needed by .NET and possibly other language bindings.
*/
TIDY_EXPORT Bool TIDY_CALL tidyInitSource( TidyInputSource* source,
void* srcData,
TidyGetByteFunc gbFunc,
TidyUngetByteFunc ugbFunc,
TidyEOFFunc endFunc );
/** Helper: get next byte from input source */
TIDY_EXPORT uint TIDY_CALL tidyGetByte( TidyInputSource* source );
/** Helper: unget byte back to input source */
TIDY_EXPORT void TIDY_CALL tidyUngetByte( TidyInputSource* source, uint byteValue );
/** Helper: check if input source at end */
TIDY_EXPORT Bool TIDY_CALL tidyIsEOF( TidyInputSource* source );
/****************
Output Sink
****************/
/** Output callback: send a byte to output */
typedef void (TIDY_CALL *TidyPutByteFunc)( void* sinkData, byte bt );
/** TidyOutputSink - accepts raw bytes of output
*/
TIDY_STRUCT
typedef struct _TidyOutputSink
{
/* Instance data */
void* sinkData; /**< Output context. Passed to callbacks */
/* Methods */
TidyPutByteFunc putByte; /**< Pointer to "put byte" callback */
} TidyOutputSink;
/** Facilitates user defined sinks by providing
** an entry point to marshal pointers-to-functions.
** Needed by .NET and possibly other language bindings.
*/
TIDY_EXPORT Bool TIDY_CALL tidyInitSink( TidyOutputSink* sink,
void* snkData,
TidyPutByteFunc pbFunc );
/** Helper: send a byte to output */
TIDY_EXPORT void TIDY_CALL tidyPutByte( TidyOutputSink* sink, uint byteValue );
/****************
Errors
****************/
/** Callback to filter messages by diagnostic level:
** info, warning, etc. Just set diagnostic output
** handler to redirect all diagnostics output. Return true
** to proceed with output, false to cancel.
*/
typedef Bool (TIDY_CALL *TidyReportFilter)( TidyDoc tdoc, TidyReportLevel lvl,
uint line, uint col, ctmbstr mssg );
typedef Bool (TIDY_CALL *TidyReportFilter2)( TidyDoc tdoc, TidyReportLevel lvl,
uint line, uint col, ctmbstr mssg, va_list args );
typedef Bool (TIDY_CALL *TidyReportFilter3)( TidyDoc tdoc, TidyReportLevel lvl,
uint line, uint col, ctmbstr code, va_list args );
/** Give Tidy a filter callback to use */
TIDY_EXPORT Bool TIDY_CALL tidySetReportFilter( TidyDoc tdoc,
TidyReportFilter filtCallback );
TIDY_EXPORT Bool TIDY_CALL tidySetReportFilter2( TidyDoc tdoc,
TidyReportFilter2 filtCallback );
TIDY_EXPORT Bool TIDY_CALL tidySetReportFilter3( TidyDoc tdoc,
TidyReportFilter3 filtCallback );
/** Set error sink to named file */
TIDY_EXPORT FILE* TIDY_CALL tidySetErrorFile( TidyDoc tdoc, ctmbstr errfilnam );
/** Set error sink to given buffer */
TIDY_EXPORT int TIDY_CALL tidySetErrorBuffer( TidyDoc tdoc, TidyBuffer* errbuf );
/** Set error sink to given generic sink */
TIDY_EXPORT int TIDY_CALL tidySetErrorSink( TidyDoc tdoc, TidyOutputSink* sink );
/****************
Printing
****************/
/** Callback to track the progress of the pretting printing process.
**
*/
typedef void (TIDY_CALL *TidyPPProgress)( TidyDoc tdoc, uint line, uint col, uint destLine );
TIDY_EXPORT Bool TIDY_CALL tidySetPrettyPrinterCallback( TidyDoc tdoc,
TidyPPProgress callback );
/** @} end IO group */
/* TODO: Catalog all messages for easy translation
TIDY_EXPORT ctmbstr tidyLookupMessage( int errorNo );
*/
/** @defgroup Parse Document Parse
**
** Parse markup from a given input source. String and filename
** functions added for convenience. HTML/XHTML version determined
** from input.
** @{
*/
/** Parse markup in named file */
TIDY_EXPORT int TIDY_CALL tidyParseFile( TidyDoc tdoc, ctmbstr filename );
/** Parse markup from the standard input */
TIDY_EXPORT int TIDY_CALL tidyParseStdin( TidyDoc tdoc );
/** Parse markup in given string */
TIDY_EXPORT int TIDY_CALL tidyParseString( TidyDoc tdoc, ctmbstr content );
/** Parse markup in given buffer */
TIDY_EXPORT int TIDY_CALL tidyParseBuffer( TidyDoc tdoc, TidyBuffer* buf );
/** Parse markup in given generic input source */
TIDY_EXPORT int TIDY_CALL tidyParseSource( TidyDoc tdoc, TidyInputSource* source);
/** @} End Parse group */
/** @defgroup Clean Diagnostics and Repair
**
** @{
*/
/** Execute configured cleanup and repair operations on parsed markup */
TIDY_EXPORT int TIDY_CALL tidyCleanAndRepair( TidyDoc tdoc );
/** Run configured diagnostics on parsed and repaired markup.
** Must call tidyCleanAndRepair() first.
*/
TIDY_EXPORT int TIDY_CALL tidyRunDiagnostics( TidyDoc tdoc );
TIDY_EXPORT int TIDY_CALL tidyReportDoctype( TidyDoc tdoc );
/** @} end Clean group */
/** @defgroup Save Document Save Functions
**
** Save currently parsed document to the given output sink. File name
** and string/buffer functions provided for convenience.
** @{
*/
/** Save to named file */
TIDY_EXPORT int TIDY_CALL tidySaveFile( TidyDoc tdoc, ctmbstr filename );
/** Save to standard output (FILE*) */
TIDY_EXPORT int TIDY_CALL tidySaveStdout( TidyDoc tdoc );
/** Save to given TidyBuffer object */
TIDY_EXPORT int TIDY_CALL tidySaveBuffer( TidyDoc tdoc, TidyBuffer* buf );
/** Save document to application buffer. If TidyShowMarkup and
** the document has no errors, or TidyForceOutput, the current
** document, per the current configuration, will be Pretty Printed
** to the application buffer. The document byte length,
** not character length, will be placed in *buflen. The document
** will not be null terminated. If the buffer is not big enough,
** ENOMEM will be returned, else the actual document status.
*/
TIDY_EXPORT int TIDY_CALL tidySaveString( TidyDoc tdoc,
tmbstr buffer, uint* buflen );
/** Save to given generic output sink */
TIDY_EXPORT int TIDY_CALL tidySaveSink( TidyDoc tdoc, TidyOutputSink* sink );
/** @} end Save group */
/** @addtogroup Basic
** @{
*/
/** Save current settings to named file.
Only non-default values are written. */
TIDY_EXPORT int TIDY_CALL tidyOptSaveFile( TidyDoc tdoc, ctmbstr cfgfil );
/** Save current settings to given output sink.
Only non-default values are written. */
TIDY_EXPORT int TIDY_CALL tidyOptSaveSink( TidyDoc tdoc, TidyOutputSink* sink );
/* Error reporting functions
*/
/** Write more complete information about errors to current error sink. */
TIDY_EXPORT void TIDY_CALL tidyErrorSummary( TidyDoc tdoc );
/** Write more general information about markup to current error sink. */
TIDY_EXPORT void TIDY_CALL tidyGeneralInfo( TidyDoc tdoc );
/** @} end Basic group (again) */
/** @defgroup Tree Document Tree
**
** A parsed and, optionally, repaired document is
** represented by Tidy as a Tree, much like a W3C DOM.
** This tree may be traversed using these functions.
** The following snippet gives a basic idea how these
** functions can be used.
**
void dumpNode( TidyNode tnod, int indent )
{
TidyNode child;
for ( child = tidyGetChild(tnod); child; child = tidyGetNext(child) )
{
ctmbstr name;
switch ( tidyNodeGetType(child) )
{
case TidyNode_Root: name = "Root"; break;
case TidyNode_DocType: name = "DOCTYPE"; break;
case TidyNode_Comment: name = "Comment"; break;
case TidyNode_ProcIns: name = "Processing Instruction"; break;
case TidyNode_Text: name = "Text"; break;
case TidyNode_CDATA: name = "CDATA"; break;
case TidyNode_Section: name = "XML Section"; break;
case TidyNode_Asp: name = "ASP"; break;
case TidyNode_Jste: name = "JSTE"; break;
case TidyNode_Php: name = "PHP"; break;
case TidyNode_XmlDecl: name = "XML Declaration"; break;
case TidyNode_Start:
case TidyNode_End:
case TidyNode_StartEnd:
default:
name = tidyNodeGetName( child );
break;
}
assert( name != NULL );
printf( "\%*.*sNode: \%s\\n", indent, indent, " ", name );
dumpNode( child, indent + 4 );
}
}
void dumpDoc( TidyDoc tdoc )
{
dumpNode( tidyGetRoot(tdoc), 0 );
}
void dumpBody( TidyDoc tdoc )
{
dumpNode( tidyGetBody(tdoc), 0 );
}
@{
*/
TIDY_EXPORT TidyNode TIDY_CALL tidyGetRoot( TidyDoc tdoc );
TIDY_EXPORT TidyNode TIDY_CALL tidyGetHtml( TidyDoc tdoc );
TIDY_EXPORT TidyNode TIDY_CALL tidyGetHead( TidyDoc tdoc );
TIDY_EXPORT TidyNode TIDY_CALL tidyGetBody( TidyDoc tdoc );
/* remove a node */
TIDY_EXPORT TidyNode TIDY_CALL tidyDiscardElement( TidyDoc tdoc, TidyNode tnod );
/* parent / child */
TIDY_EXPORT TidyNode TIDY_CALL tidyGetParent( TidyNode tnod );
TIDY_EXPORT TidyNode TIDY_CALL tidyGetChild( TidyNode tnod );
/* siblings */
TIDY_EXPORT TidyNode TIDY_CALL tidyGetNext( TidyNode tnod );
TIDY_EXPORT TidyNode TIDY_CALL tidyGetPrev( TidyNode tnod );
/* Null for non-element nodes and all pure HTML
TIDY_EXPORT ctmbstr tidyNodeNsLocal( TidyNode tnod );
TIDY_EXPORT ctmbstr tidyNodeNsPrefix( TidyNode tnod );
TIDY_EXPORT ctmbstr tidyNodeNsUri( TidyNode tnod );
*/
/* Iterate over attribute values */
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrFirst( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrNext( TidyAttr tattr );
TIDY_EXPORT ctmbstr TIDY_CALL tidyAttrName( TidyAttr tattr );
TIDY_EXPORT ctmbstr TIDY_CALL tidyAttrValue( TidyAttr tattr );
TIDY_EXPORT void TIDY_CALL tidyAttrDiscard( TidyDoc itdoc, TidyNode tnod, TidyAttr tattr );
/* Null for pure HTML
TIDY_EXPORT ctmbstr tidyAttrNsLocal( TidyAttr tattr );
TIDY_EXPORT ctmbstr tidyAttrNsPrefix( TidyAttr tattr );
TIDY_EXPORT ctmbstr tidyAttrNsUri( TidyAttr tattr );
*/
/** @} end Tree group */
/** @defgroup NodeAsk Node Interrogation
**
** Get information about any givent node.
** @{
*/
/* Node info */
TIDY_EXPORT TidyNodeType TIDY_CALL tidyNodeGetType( TidyNode tnod );
TIDY_EXPORT ctmbstr TIDY_CALL tidyNodeGetName( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsText( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsProp( TidyDoc tdoc, TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHeader( TidyNode tnod ); /* h1, h2, ... */
TIDY_EXPORT Bool TIDY_CALL tidyNodeHasText( TidyDoc tdoc, TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeGetText( TidyDoc tdoc, TidyNode tnod, TidyBuffer* buf );
/* Copy the unescaped value of this node into the given TidyBuffer as UTF-8 */
TIDY_EXPORT Bool TIDY_CALL tidyNodeGetValue( TidyDoc tdoc, TidyNode tnod, TidyBuffer* buf );
TIDY_EXPORT TidyTagId TIDY_CALL tidyNodeGetId( TidyNode tnod );
TIDY_EXPORT uint TIDY_CALL tidyNodeLine( TidyNode tnod );
TIDY_EXPORT uint TIDY_CALL tidyNodeColumn( TidyNode tnod );
/** @defgroup NodeIsElementName Deprecated node interrogation per TagId
**
** @deprecated The functions tidyNodeIs{ElementName} are deprecated and
** should be replaced by tidyNodeGetId.
** @{
*/
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHTML( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHEAD( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTITLE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBASE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMETA( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBODY( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFRAMESET( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFRAME( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsIFRAME( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOFRAMES( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHR( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH1( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH2( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsPRE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLISTING( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsP( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsUL( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOL( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDL( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDIR( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLI( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDD( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTABLE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCAPTION( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTD( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTH( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTR( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCOL( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCOLGROUP( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBR( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsA( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLINK( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsB( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsI( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTRONG( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsEM( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBIG( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSMALL( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsPARAM( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOPTION( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOPTGROUP( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsIMG( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMAP( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsAREA( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOBR( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsWBR( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFONT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLAYER( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSPACER( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCENTER( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTYLE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSCRIPT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOSCRIPT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFORM( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTEXTAREA( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBLOCKQUOTE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsAPPLET( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOBJECT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDIV( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSPAN( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsINPUT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsQ( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLABEL( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH3( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH4( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH5( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH6( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsADDRESS( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsXMP( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSELECT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBLINK( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMARQUEE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsEMBED( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBASEFONT( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsISINDEX( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsS( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTRIKE( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsU( TidyNode tnod );
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMENU( TidyNode tnod );
/* HTML5 */
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDATALIST( TidyNode tnod ); // bit like OPTIONS
/** @} End NodeIsElementName group */
/** @} End NodeAsk group */
/** @defgroup Attribute Attribute Interrogation
**
** Get information about any given attribute.
** @{
*/
TIDY_EXPORT TidyAttrId TIDY_CALL tidyAttrGetId( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsEvent( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsProp( TidyAttr tattr );
/** @defgroup AttrIsAttributeName Deprecated attribute interrogation per AttrId
**
** @deprecated The functions tidyAttrIs{AttributeName} are deprecated and
** should be replaced by tidyAttrGetId.
** @{
*/
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHREF( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSRC( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsID( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsNAME( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSUMMARY( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsALT( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLONGDESC( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsUSEMAP( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsISMAP( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLANGUAGE( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTYPE( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsVALUE( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCONTENT( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTITLE( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsXMLNS( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsDATAFLD( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsWIDTH( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHEIGHT( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsFOR( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSELECTED( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCHECKED( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLANG( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTARGET( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHTTP_EQUIV( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsREL( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEMOVE( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEDOWN( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEUP( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnCLICK( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEOVER( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEOUT( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYDOWN( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYUP( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYPRESS( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnFOCUS( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnBLUR( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsBGCOLOR( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLINK( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsALINK( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsVLINK( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTEXT( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSTYLE( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsABBR( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCOLSPAN( TidyAttr tattr );
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsROWSPAN( TidyAttr tattr );
/** @} End AttrIsAttributeName group */
/** @} end AttrAsk group */
/** @defgroup AttrGet Attribute Retrieval
**
** Lookup an attribute from a given node
** @{
*/
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId );
/** @defgroup AttrGetAttributeName Deprecated attribute retrieval per AttrId
**
** @deprecated The functions tidyAttrGet{AttributeName} are deprecated and
** should be replaced by tidyAttrGetById.
** For instance, tidyAttrGetID( TidyNode tnod ) can be replaced by
** tidyAttrGetById( TidyNode tnod, TidyAttr_ID ). This avoids a potential
** name clash with tidyAttrGetId for case-insensitive languages.
** @{
*/
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHREF( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSRC( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetID( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetNAME( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSUMMARY( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALT( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLONGDESC( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetUSEMAP( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetISMAP( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANGUAGE( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTYPE( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVALUE( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCONTENT( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTITLE( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetXMLNS( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetDATAFLD( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetWIDTH( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHEIGHT( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetFOR( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSELECTED( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCHECKED( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANG( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTARGET( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHTTP_EQUIV( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetREL( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEMOVE( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEDOWN( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEUP( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnCLICK( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOVER( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOUT( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYDOWN( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYUP( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYPRESS( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnFOCUS( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnBLUR( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetBGCOLOR( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLINK( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALINK( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVLINK( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTEXT( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSTYLE( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetABBR( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCOLSPAN( TidyNode tnod );
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetROWSPAN( TidyNode tnod );
/** @} End AttrGetAttributeName group */
/** @} end AttrGet group */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __TIDY_H__ */
/*
* local variables:
* mode: c
* indent-tabs-mode: nil
* c-basic-offset: 4
* eval: (c-set-offset 'substatement-open 0)
* end:
*/
tidy-html5-5.2.0/include/tidybuffio.h 0000664 0000000 0000000 00000006607 12726015173 0017473 0 ustar 00root root 0000000 0000000 #ifndef __TIDY_BUFFIO_H__
#define __TIDY_BUFFIO_H__
/** @file tidybuffio.h - Treat buffer as an I/O stream.
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Requires buffer to automatically grow as bytes are added.
Must keep track of current read and write points.
*/
#include "tidyplatform.h"
#include "tidy.h"
#ifdef __cplusplus
extern "C" {
#endif
/** TidyBuffer - A chunk of memory */
TIDY_STRUCT
struct _TidyBuffer
{
TidyAllocator* allocator; /**< Memory allocator */
byte* bp; /**< Pointer to bytes */
uint size; /**< # bytes currently in use */
uint allocated; /**< # bytes allocated */
uint next; /**< Offset of current input position */
};
/** Initialize data structure using the default allocator */
TIDY_EXPORT void TIDY_CALL tidyBufInit( TidyBuffer* buf );
/** Initialize data structure using the given custom allocator */
TIDY_EXPORT void TIDY_CALL tidyBufInitWithAllocator( TidyBuffer* buf, TidyAllocator* allocator );
/** Free current buffer, allocate given amount, reset input pointer,
use the default allocator */
TIDY_EXPORT void TIDY_CALL tidyBufAlloc( TidyBuffer* buf, uint allocSize );
/** Free current buffer, allocate given amount, reset input pointer,
use the given custom allocator */
TIDY_EXPORT void TIDY_CALL tidyBufAllocWithAllocator( TidyBuffer* buf,
TidyAllocator* allocator,
uint allocSize );
/** Expand buffer to given size.
** Chunk size is minimum growth. Pass 0 for default of 256 bytes.
*/
TIDY_EXPORT void TIDY_CALL tidyBufCheckAlloc( TidyBuffer* buf,
uint allocSize, uint chunkSize );
/** Free current contents and zero out */
TIDY_EXPORT void TIDY_CALL tidyBufFree( TidyBuffer* buf );
/** Set buffer bytes to 0 */
TIDY_EXPORT void TIDY_CALL tidyBufClear( TidyBuffer* buf );
/** Attach to existing buffer */
TIDY_EXPORT void TIDY_CALL tidyBufAttach( TidyBuffer* buf, byte* bp, uint size );
/** Detach from buffer. Caller must free. */
TIDY_EXPORT void TIDY_CALL tidyBufDetach( TidyBuffer* buf );
/** Append bytes to buffer. Expand if necessary. */
TIDY_EXPORT void TIDY_CALL tidyBufAppend( TidyBuffer* buf, void* vp, uint size );
/** Append one byte to buffer. Expand if necessary. */
TIDY_EXPORT void TIDY_CALL tidyBufPutByte( TidyBuffer* buf, byte bv );
/** Get byte from end of buffer */
TIDY_EXPORT int TIDY_CALL tidyBufPopByte( TidyBuffer* buf );
/** Get byte from front of buffer. Increment input offset. */
TIDY_EXPORT int TIDY_CALL tidyBufGetByte( TidyBuffer* buf );
/** At end of buffer? */
TIDY_EXPORT Bool TIDY_CALL tidyBufEndOfInput( TidyBuffer* buf );
/** Put a byte back into the buffer. Decrement input offset. */
TIDY_EXPORT void TIDY_CALL tidyBufUngetByte( TidyBuffer* buf, byte bv );
/**************
TIDY
**************/
/* Forward declarations
*/
/** Initialize a buffer input source */
TIDY_EXPORT void TIDY_CALL tidyInitInputBuffer( TidyInputSource* inp, TidyBuffer* buf );
/** Initialize a buffer output sink */
TIDY_EXPORT void TIDY_CALL tidyInitOutputBuffer( TidyOutputSink* outp, TidyBuffer* buf );
#ifdef __cplusplus
}
#endif
#endif /* __TIDY_BUFFIO_H__ */
/*
* local variables:
* mode: c
* indent-tabs-mode: nil
* c-basic-offset: 4
* eval: (c-set-offset 'substatement-open 0)
* end:
*/
tidy-html5-5.2.0/include/tidyenum.h 0000664 0000000 0000000 00000074232 12726015173 0017164 0 ustar 00root root 0000000 0000000 #ifndef __TIDYENUM_H__
#define __TIDYENUM_H__
/* @file tidyenum.h -- Split public enums into separate header
Simplifies enum re-use in various wrappers. e.g. SWIG
generated wrappers and COM IDL files.
Copyright (c) 1998-2008 World Wide Web Consortium
(Massachusetts Institute of Technology, European Research
Consortium for Informatics and Mathematics, Keio University).
All Rights Reserved.
Contributing Author(s):
Dave Raggett
The contributing author(s) would like to thank all those who
helped with testing, bug fixes and suggestions for improvements.
This wouldn't have been possible without your help.
COPYRIGHT NOTICE:
This software and documentation is provided "as is," and
the copyright holders and contributing author(s) make no
representations or warranties, express or implied, including
but not limited to, warranties of merchantability or fitness
for any particular purpose or that the use of the software or
documentation will not infringe any third party patents,
copyrights, trademarks or other rights.
The copyright holders and contributing author(s) will not be held
liable for any direct, indirect, special or consequential damages
arising out of any use of the software or documentation, even if
advised of the possibility of such damage.
Permission is hereby granted to use, copy, modify, and distribute
this source code, or portions hereof, documentation and executables,
for any purpose, without fee, subject to the following restrictions:
1. The origin of this source code must not be misrepresented.
2. Altered versions must be plainly marked as such and must
not be misrepresented as being the original source.
3. This Copyright notice may not be removed or altered from any
source or altered source distribution.
The copyright holders and contributing author(s) specifically
permit, without fee, and encourage the use of this source code
as a component for supporting the Hypertext Markup Language in
commercial products. If you use this source code in a product,
acknowledgment is not required but would be appreciated.
Created 2001-05-20 by Charles Reitzel
Updated 2002-07-01 by Charles Reitzel - 1st Implementation
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Enumerate configuration options
*/
/** Categories of Tidy configuration options
*/
typedef enum
{
TidyMarkup, /**< Markup options: (X)HTML version, etc */
TidyDiagnostics, /**< Diagnostics */
TidyPrettyPrint, /**< Output layout */
TidyEncoding, /**< Character encodings */
TidyMiscellaneous /**< File handling, message format, etc. */
} TidyConfigCategory;
/** Option IDs Used to get/set option values.
These TidyOptionId are used throughout libtidy, and also
have associated localized strings to describe them.
Note this enum MUST start at zero due to historical design-time
decisions that make assumptions about this starting value.
*/
typedef enum
{
TidyUnknownOption, /**< Unknown option! */
TidyIndentSpaces, /**< Indentation n spaces/tabs */
TidyWrapLen, /**< Wrap margin */
TidyTabSize, /**< Expand tabs to n spaces */
TidyCharEncoding, /**< In/out character encoding */
TidyInCharEncoding, /**< Input character encoding (if different) */
TidyOutCharEncoding, /**< Output character encoding (if different) */
TidyNewline, /**< Output line ending (default to platform) */
TidyDoctypeMode, /**< See doctype property */
TidyDoctype, /**< User specified doctype */
TidyDuplicateAttrs, /**< Keep first or last duplicate attribute */
TidyAltText, /**< Default text for alt attribute */
/* obsolete */
TidySlideStyle, /**< Style sheet for slides: not used for anything yet */
TidyErrFile, /**< File name to write errors to */
TidyOutFile, /**< File name to write markup to */
TidyWriteBack, /**< If true then output tidied markup */
TidyShowMarkup, /**< If false, normal output is suppressed */
TidyShowInfo, /**< If true, info-level messages are shown */
TidyShowWarnings, /**< However errors are always shown */
TidyQuiet, /**< No 'Parsing X', guessed DTD or summary */
TidyIndentContent, /**< Indent content of appropriate tags */
/**< "auto" does text/block level content indentation */
TidyCoerceEndTags, /**< Coerce end tags from start tags where probably intended */
TidyOmitOptionalTags,/**< Suppress optional start tags and end tags */
TidyHideEndTags, /**< Legacy name for TidyOmitOptionalTags */
TidyXmlTags, /**< Treat input as XML */
TidyXmlOut, /**< Create output as XML */
TidyXhtmlOut, /**< Output extensible HTML */
TidyHtmlOut, /**< Output plain HTML, even for XHTML input.
Yes means set explicitly. */
TidyXmlDecl, /**< Add for XML docs */
TidyUpperCaseTags, /**< Output tags in upper not lower case */
TidyUpperCaseAttrs, /**< Output attributes in upper not lower case */
TidyMakeBare, /**< Make bare HTML: remove Microsoft cruft */
TidyMakeClean, /**< Replace presentational clutter by style rules */
TidyGDocClean, /**< Clean up HTML exported from Google Docs */
TidyLogicalEmphasis, /**< Replace i by em and b by strong */
TidyDropPropAttrs, /**< Discard proprietary attributes */
TidyDropFontTags, /**< Discard presentation tags */
TidyDropEmptyElems, /**< Discard empty elements */
TidyDropEmptyParas, /**< Discard empty p elements */
TidyFixComments, /**< Fix comments with adjacent hyphens */
TidyBreakBeforeBR, /**< Output newline before or not? */
/* obsolete */
TidyBurstSlides, /**< Create slides on each h2 element */
TidyNumEntities, /**< Use numeric entities */
TidyQuoteMarks, /**< Output " marks as " */
TidyQuoteNbsp, /**< Output non-breaking space as entity */
TidyQuoteAmpersand, /**< Output naked ampersand as & */
TidyWrapAttVals, /**< Wrap within attribute values */
TidyWrapScriptlets, /**< Wrap within JavaScript string literals */
TidyWrapSection, /**< Wrap within section tags */
TidyWrapAsp, /**< Wrap within ASP pseudo elements */
TidyWrapJste, /**< Wrap within JSTE pseudo elements */
TidyWrapPhp, /**< Wrap within PHP pseudo elements */
TidyFixBackslash, /**< Fix URLs by replacing \ with / */
TidyIndentAttributes,/**< Newline+indent before each attribute */
TidyXmlPIs, /**< If set to yes PIs must end with ?> */
TidyXmlSpace, /**< If set to yes adds xml:space attr as needed */
TidyEncloseBodyText, /**< If yes text at body is wrapped in P's */
TidyEncloseBlockText,/**< If yes text in blocks is wrapped in P's */
TidyKeepFileTimes, /**< If yes last modied time is preserved */
TidyWord2000, /**< Draconian cleaning for Word2000 */
TidyMark, /**< Add meta element indicating tidied doc */
TidyEmacs, /**< If true format error output for GNU Emacs */
TidyEmacsFile, /**< Name of current Emacs file */
TidyLiteralAttribs, /**< If true attributes may use newlines */
TidyBodyOnly, /**< Output BODY content only */
TidyFixUri, /**< Applies URI encoding if necessary */
TidyLowerLiterals, /**< Folds known attribute values to lower case */
TidyHideComments, /**< Hides all (real) comments in output */
TidyIndentCdata, /**< Indent section */
TidyForceOutput, /**< Output document even if errors were found */
TidyShowErrors, /**< Number of errors to put out */
TidyAsciiChars, /**< Convert quotes and dashes to nearest ASCII char */
TidyJoinClasses, /**< Join multiple class attributes */
TidyJoinStyles, /**< Join multiple style attributes */
TidyEscapeCdata, /**< Replace sections with escaped text */
#if SUPPORT_ASIAN_ENCODINGS
TidyLanguage, /**< Language property: not used for anything yet */
TidyNCR, /**< Allow numeric character references */
#else
TidyLanguageNotUsed,
TidyNCRNotUsed,
#endif
#if SUPPORT_UTF16_ENCODINGS
TidyOutputBOM, /**< Output a Byte Order Mark (BOM) for UTF-16 encodings */
/**< auto: if input stream has BOM, we output a BOM */
#else
TidyOutputBOMNotUsed,
#endif
TidyReplaceColor, /**< Replace hex color attribute values with names */
TidyCSSPrefix, /**< CSS class naming for -clean option */
TidyInlineTags, /**< Declared inline tags */
TidyBlockTags, /**< Declared block tags */
TidyEmptyTags, /**< Declared empty tags */
TidyPreTags, /**< Declared pre tags */
TidyAccessibilityCheckLevel, /**< Accessibility check level
0 (old style), or 1, 2, 3 */
TidyVertSpace, /**< degree to which markup is spread out vertically */
#if SUPPORT_ASIAN_ENCODINGS
TidyPunctWrap, /**< consider punctuation and breaking spaces for wrapping */
#else
TidyPunctWrapNotUsed,
#endif
TidyMergeEmphasis, /**< Merge nested B and I elements */
TidyMergeDivs, /**< Merge multiple DIVs */
TidyDecorateInferredUL, /**< Mark inferred UL elements with no indent CSS */
TidyPreserveEntities, /**< Preserve entities */
TidySortAttributes, /**< Sort attributes */
TidyMergeSpans, /**< Merge multiple SPANs */
TidyAnchorAsName, /**< Define anchors as name attributes */
TidyPPrintTabs, /**< Indent using tabs istead of spaces */
TidySkipNested, /**< Skip nested tags in script and style CDATA */
TidyStrictTagsAttr, /**< Ensure tags and attributes match output HTML version */
TidyEscapeScripts, /**< Escape items that look like closing tags in script tags */
N_TIDY_OPTIONS /**< Must be last */
} TidyOptionId;
/** Option data types
*/
typedef enum
{
TidyString, /**< String */
TidyInteger, /**< Integer or enumeration */
TidyBoolean /**< Boolean flag */
} TidyOptionType;
/** AutoBool values used by ParseBool, ParseTriState, ParseIndent, ParseBOM
*/
typedef enum
{
TidyNoState, /**< maps to 'no' */
TidyYesState, /**< maps to 'yes' */
TidyAutoState /**< Automatic */
} TidyTriState;
/** TidyNewline option values to control output line endings.
*/
typedef enum
{
TidyLF, /**< Use Unix style: LF */
TidyCRLF, /**< Use DOS/Windows style: CR+LF */
TidyCR /**< Use Macintosh style: CR */
} TidyLineEnding;
/** Mode controlling treatment of doctype
*/
typedef enum
{
TidyDoctypeHtml5, /**< */
TidyDoctypeOmit, /**< Omit DOCTYPE altogether */
TidyDoctypeAuto, /**< Keep DOCTYPE in input. Set version to content */
TidyDoctypeStrict, /**< Convert document to HTML 4 strict content model */
TidyDoctypeLoose, /**< Convert document to HTML 4 transitional
content model */
TidyDoctypeUser /**< Set DOCTYPE FPI explicitly */
} TidyDoctypeModes;
/** Mode controlling treatment of duplicate Attributes
*/
typedef enum
{
TidyKeepFirst,
TidyKeepLast
} TidyDupAttrModes;
/** Mode controlling treatment of sorting attributes
*/
typedef enum
{
TidySortAttrNone,
TidySortAttrAlpha
} TidyAttrSortStrategy;
/* I/O and Message handling interface
**
** By default, Tidy will define, create and use
** instances of input and output handlers for
** standard C buffered I/O (i.e. FILE* stdin,
** FILE* stdout and FILE* stderr for content
** input, content output and diagnostic output,
** respectively. A FILE* cfgFile input handler
** will be used for config files. Command line
** options will just be set directly.
*/
/** Message severity level
* These TidyReportLevel are used throughout libtidy, but don't
* have associated localized strings to describe them because
* TidyReportLevel is externally-facing, and changing the enum
* starting int can break existing API's for poorly-written
* applications using libtidy. See enum `TidyReportLevelKeys`.
*/
typedef enum
{
TidyInfo, /**< Information about markup usage */
TidyWarning, /**< Warning message */
TidyConfig, /**< Configuration error */
TidyAccess, /**< Accessibility message */
TidyError, /**< Error message - output suppressed */
TidyBadDocument, /**< I/O or file system error */
TidyFatal /**< Crash! */
} TidyReportLevel;
/** Message severity level - string lookup keys
* These TidyReportLevelKeys are used throughout libtidy, and
* have associated localized strings to describe them. They
* correspond to enum `TidyReportLevel`.
*/
typedef enum
{
TidyInfoString = 600,
TidyWarningString,
TidyConfigString,
TidyAccessString,
TidyErrorString,
TidyBadDocumentString,
TidyFatalString
} TidyReportLevelKeys;
/* Document tree traversal functions
*/
/** Node types
*/
typedef enum
{
TidyNode_Root, /**< Root */
TidyNode_DocType, /**< DOCTYPE */
TidyNode_Comment, /**< Comment */
TidyNode_ProcIns, /**< Processing Instruction */
TidyNode_Text, /**< Text */
TidyNode_Start, /**< Start Tag */
TidyNode_End, /**< End Tag */
TidyNode_StartEnd, /**< Start/End (empty) Tag */
TidyNode_CDATA, /**< Unparsed Text */
TidyNode_Section, /**< XML Section */
TidyNode_Asp, /**< ASP Source */
TidyNode_Jste, /**< JSTE Source */
TidyNode_Php, /**< PHP Source */
TidyNode_XmlDecl /**< XML Declaration */
} TidyNodeType;
/** Known HTML element types
*/
typedef enum
{
TidyTag_UNKNOWN, /**< Unknown tag! */
TidyTag_A, /**< A */
TidyTag_ABBR, /**< ABBR */
TidyTag_ACRONYM, /**< ACRONYM */
TidyTag_ADDRESS, /**< ADDRESS */
TidyTag_ALIGN, /**< ALIGN */
TidyTag_APPLET, /**< APPLET */
TidyTag_AREA, /**< AREA */
TidyTag_B, /**< B */
TidyTag_BASE, /**< BASE */
TidyTag_BASEFONT, /**< BASEFONT */
TidyTag_BDO, /**< BDO */
TidyTag_BGSOUND, /**< BGSOUND */
TidyTag_BIG, /**< BIG */
TidyTag_BLINK, /**< BLINK */
TidyTag_BLOCKQUOTE, /**< BLOCKQUOTE */
TidyTag_BODY, /**< BODY */
TidyTag_BR, /**< BR */
TidyTag_BUTTON, /**< BUTTON */
TidyTag_CAPTION, /**< CAPTION */
TidyTag_CENTER, /**< CENTER */
TidyTag_CITE, /**< CITE */
TidyTag_CODE, /**< CODE */
TidyTag_COL, /**< COL */
TidyTag_COLGROUP, /**< COLGROUP */
TidyTag_COMMENT, /**< COMMENT */
TidyTag_DD, /**< DD */
TidyTag_DEL, /**< DEL */
TidyTag_DFN, /**< DFN */
TidyTag_DIR, /**< DIR */
TidyTag_DIV, /**< DIF */
TidyTag_DL, /**< DL */
TidyTag_DT, /**< DT */
TidyTag_EM, /**< EM */
TidyTag_EMBED, /**< EMBED */
TidyTag_FIELDSET, /**< FIELDSET */
TidyTag_FONT, /**< FONT */
TidyTag_FORM, /**< FORM */
TidyTag_FRAME, /**< FRAME */
TidyTag_FRAMESET, /**< FRAMESET */
TidyTag_H1, /**< H1 */
TidyTag_H2, /**< H2 */
TidyTag_H3, /**< H3 */
TidyTag_H4, /**< H4 */
TidyTag_H5, /**< H5 */
TidyTag_H6, /**< H6 */
TidyTag_HEAD, /**< HEAD */
TidyTag_HR, /**< HR */
TidyTag_HTML, /**< HTML */
TidyTag_I, /**< I */
TidyTag_IFRAME, /**< IFRAME */
TidyTag_ILAYER, /**< ILAYER */
TidyTag_IMG, /**< IMG */
TidyTag_INPUT, /**< INPUT */
TidyTag_INS, /**< INS */
TidyTag_ISINDEX, /**< ISINDEX */
TidyTag_KBD, /**< KBD */
TidyTag_KEYGEN, /**< KEYGEN */
TidyTag_LABEL, /**< LABEL */
TidyTag_LAYER, /**< LAYER */
TidyTag_LEGEND, /**< LEGEND */
TidyTag_LI, /**< LI */
TidyTag_LINK, /**< LINK */
TidyTag_LISTING, /**< LISTING */
TidyTag_MAP, /**< MAP */
TidyTag_MATHML, /**< MATH (HTML5) [i_a]2 MathML embedded in [X]HTML */
TidyTag_MARQUEE, /**< MARQUEE */
TidyTag_MENU, /**< MENU */
TidyTag_META, /**< META */
TidyTag_MULTICOL, /**< MULTICOL */
TidyTag_NOBR, /**< NOBR */
TidyTag_NOEMBED, /**< NOEMBED */
TidyTag_NOFRAMES, /**< NOFRAMES */
TidyTag_NOLAYER, /**< NOLAYER */
TidyTag_NOSAVE, /**< NOSAVE */
TidyTag_NOSCRIPT, /**< NOSCRIPT */
TidyTag_OBJECT, /**< OBJECT */
TidyTag_OL, /**< OL */
TidyTag_OPTGROUP, /**< OPTGROUP */
TidyTag_OPTION, /**< OPTION */
TidyTag_P, /**< P */
TidyTag_PARAM, /**< PARAM */
TidyTag_PICTURE, /**< PICTURE (HTML5) */
TidyTag_PLAINTEXT,/**< PLAINTEXT */
TidyTag_PRE, /**< PRE */
TidyTag_Q, /**< Q */
TidyTag_RB, /**< RB */
TidyTag_RBC, /**< RBC */
TidyTag_RP, /**< RP */
TidyTag_RT, /**< RT */
TidyTag_RTC, /**< RTC */
TidyTag_RUBY, /**< RUBY */
TidyTag_S, /**< S */
TidyTag_SAMP, /**< SAMP */
TidyTag_SCRIPT, /**< SCRIPT */
TidyTag_SELECT, /**< SELECT */
TidyTag_SERVER, /**< SERVER */
TidyTag_SERVLET, /**< SERVLET */
TidyTag_SMALL, /**< SMALL */
TidyTag_SPACER, /**< SPACER */
TidyTag_SPAN, /**< SPAN */
TidyTag_STRIKE, /**< STRIKE */
TidyTag_STRONG, /**< STRONG */
TidyTag_STYLE, /**< STYLE */
TidyTag_SUB, /**< SUB */
TidyTag_SUP, /**< SUP */
TidyTag_SVG, /**< SVG (HTML5) */
TidyTag_TABLE, /**< TABLE */
TidyTag_TBODY, /**< TBODY */
TidyTag_TD, /**< TD */
TidyTag_TEXTAREA, /**< TEXTAREA */
TidyTag_TFOOT, /**< TFOOT */
TidyTag_TH, /**< TH */
TidyTag_THEAD, /**< THEAD */
TidyTag_TITLE, /**< TITLE */
TidyTag_TR, /**< TR */
TidyTag_TT, /**< TT */
TidyTag_U, /**< U */
TidyTag_UL, /**< UL */
TidyTag_VAR, /**< VAR */
TidyTag_WBR, /**< WBR */
TidyTag_XMP, /**< XMP */
TidyTag_NEXTID, /**< NEXTID */
TidyTag_ARTICLE,
TidyTag_ASIDE,
TidyTag_AUDIO,
TidyTag_BDI,
TidyTag_CANVAS,
TidyTag_COMMAND,
TidyTag_DATALIST,
TidyTag_DETAILS,
TidyTag_DIALOG,
TidyTag_FIGCAPTION,
TidyTag_FIGURE,
TidyTag_FOOTER,
TidyTag_HEADER,
TidyTag_HGROUP,
TidyTag_MAIN,
TidyTag_MARK,
TidyTag_MENUITEM,
TidyTag_METER,
TidyTag_NAV,
TidyTag_OUTPUT,
TidyTag_PROGRESS,
TidyTag_SECTION,
TidyTag_SOURCE,
TidyTag_SUMMARY,
TidyTag_TEMPLATE,
TidyTag_TIME,
TidyTag_TRACK,
TidyTag_VIDEO,
N_TIDY_TAGS /**< Must be last */
} TidyTagId;
/* Attribute interrogation
*/
/** Known HTML attributes
*/
typedef enum
{
TidyAttr_UNKNOWN, /**< UNKNOWN= */
TidyAttr_ABBR, /**< ABBR= */
TidyAttr_ACCEPT, /**< ACCEPT= */
TidyAttr_ACCEPT_CHARSET, /**< ACCEPT_CHARSET= */
TidyAttr_ACCESSKEY, /**< ACCESSKEY= */
TidyAttr_ACTION, /**< ACTION= */
TidyAttr_ADD_DATE, /**< ADD_DATE= */
TidyAttr_ALIGN, /**< ALIGN= */
TidyAttr_ALINK, /**< ALINK= */
TidyAttr_ALLOWFULLSCREEN, /**< ALLOWFULLSCREEN= */
TidyAttr_ALT, /**< ALT= */
TidyAttr_ARCHIVE, /**< ARCHIVE= */
TidyAttr_AXIS, /**< AXIS= */
TidyAttr_BACKGROUND, /**< BACKGROUND= */
TidyAttr_BGCOLOR, /**< BGCOLOR= */
TidyAttr_BGPROPERTIES, /**< BGPROPERTIES= */
TidyAttr_BORDER, /**< BORDER= */
TidyAttr_BORDERCOLOR, /**< BORDERCOLOR= */
TidyAttr_BOTTOMMARGIN, /**< BOTTOMMARGIN= */
TidyAttr_CELLPADDING, /**< CELLPADDING= */
TidyAttr_CELLSPACING, /**< CELLSPACING= */
TidyAttr_CHAR, /**< CHAR= */
TidyAttr_CHAROFF, /**< CHAROFF= */
TidyAttr_CHARSET, /**< CHARSET= */
TidyAttr_CHECKED, /**< CHECKED= */
TidyAttr_CITE, /**< CITE= */
TidyAttr_CLASS, /**< CLASS= */
TidyAttr_CLASSID, /**< CLASSID= */
TidyAttr_CLEAR, /**< CLEAR= */
TidyAttr_CODE, /**< CODE= */
TidyAttr_CODEBASE, /**< CODEBASE= */
TidyAttr_CODETYPE, /**< CODETYPE= */
TidyAttr_COLOR, /**< COLOR= */
TidyAttr_COLS, /**< COLS= */
TidyAttr_COLSPAN, /**< COLSPAN= */
TidyAttr_COMPACT, /**< COMPACT= */
TidyAttr_CONTENT, /**< CONTENT= */
TidyAttr_COORDS, /**< COORDS= */
TidyAttr_DATA, /**< DATA= */
TidyAttr_DATAFLD, /**< DATAFLD= */
TidyAttr_DATAFORMATAS, /**< DATAFORMATAS= */
TidyAttr_DATAPAGESIZE, /**< DATAPAGESIZE= */
TidyAttr_DATASRC, /**< DATASRC= */
TidyAttr_DATETIME, /**< DATETIME= */
TidyAttr_DECLARE, /**< DECLARE= */
TidyAttr_DEFER, /**< DEFER= */
TidyAttr_DIR, /**< DIR= */
TidyAttr_DISABLED, /**< DISABLED= */
TidyAttr_ENCODING, /**< ENCODING= */
TidyAttr_ENCTYPE, /**< ENCTYPE= */
TidyAttr_FACE, /**< FACE= */
TidyAttr_FOR, /**< FOR= */
TidyAttr_FRAME, /**< FRAME= */
TidyAttr_FRAMEBORDER, /**< FRAMEBORDER= */
TidyAttr_FRAMESPACING, /**< FRAMESPACING= */
TidyAttr_GRIDX, /**< GRIDX= */
TidyAttr_GRIDY, /**< GRIDY= */
TidyAttr_HEADERS, /**< HEADERS= */
TidyAttr_HEIGHT, /**< HEIGHT= */
TidyAttr_HREF, /**< HREF= */
TidyAttr_HREFLANG, /**< HREFLANG= */
TidyAttr_HSPACE, /**< HSPACE= */
TidyAttr_HTTP_EQUIV, /**< HTTP_EQUIV= */
TidyAttr_ID, /**< ID= */
TidyAttr_ISMAP, /**< ISMAP= */
TidyAttr_ITEMID, /**< ITEMID= */
TidyAttr_ITEMPROP, /**< ITEMPROP= */
TidyAttr_ITEMREF, /**< ITEMREF= */
TidyAttr_ITEMSCOPE, /**< ITEMSCOPE= */
TidyAttr_ITEMTYPE, /**< ITEMTYPE= */
TidyAttr_LABEL, /**< LABEL= */
TidyAttr_LANG, /**< LANG= */
TidyAttr_LANGUAGE, /**< LANGUAGE= */
TidyAttr_LAST_MODIFIED, /**< LAST_MODIFIED= */
TidyAttr_LAST_VISIT, /**< LAST_VISIT= */
TidyAttr_LEFTMARGIN, /**< LEFTMARGIN= */
TidyAttr_LINK, /**< LINK= */
TidyAttr_LONGDESC, /**< LONGDESC= */
TidyAttr_LOWSRC, /**< LOWSRC= */
TidyAttr_MARGINHEIGHT, /**< MARGINHEIGHT= */
TidyAttr_MARGINWIDTH, /**< MARGINWIDTH= */
TidyAttr_MAXLENGTH, /**< MAXLENGTH= */
TidyAttr_MEDIA, /**< MEDIA= */
TidyAttr_METHOD, /**< METHOD= */
TidyAttr_MULTIPLE, /**< MULTIPLE= */
TidyAttr_NAME, /**< NAME= */
TidyAttr_NOHREF, /**< NOHREF= */
TidyAttr_NORESIZE, /**< NORESIZE= */
TidyAttr_NOSHADE, /**< NOSHADE= */
TidyAttr_NOWRAP, /**< NOWRAP= */
TidyAttr_OBJECT, /**< OBJECT= */
TidyAttr_OnAFTERUPDATE, /**< OnAFTERUPDATE= */
TidyAttr_OnBEFOREUNLOAD, /**< OnBEFOREUNLOAD= */
TidyAttr_OnBEFOREUPDATE, /**< OnBEFOREUPDATE= */
TidyAttr_OnBLUR, /**< OnBLUR= */
TidyAttr_OnCHANGE, /**< OnCHANGE= */
TidyAttr_OnCLICK, /**< OnCLICK= */
TidyAttr_OnDATAAVAILABLE, /**< OnDATAAVAILABLE= */
TidyAttr_OnDATASETCHANGED, /**< OnDATASETCHANGED= */
TidyAttr_OnDATASETCOMPLETE, /**< OnDATASETCOMPLETE= */
TidyAttr_OnDBLCLICK, /**< OnDBLCLICK= */
TidyAttr_OnERRORUPDATE, /**< OnERRORUPDATE= */
TidyAttr_OnFOCUS, /**< OnFOCUS= */
TidyAttr_OnKEYDOWN, /**< OnKEYDOWN= */
TidyAttr_OnKEYPRESS, /**< OnKEYPRESS= */
TidyAttr_OnKEYUP, /**< OnKEYUP= */
TidyAttr_OnLOAD, /**< OnLOAD= */
TidyAttr_OnMOUSEDOWN, /**< OnMOUSEDOWN= */
TidyAttr_OnMOUSEMOVE, /**< OnMOUSEMOVE= */
TidyAttr_OnMOUSEOUT, /**< OnMOUSEOUT= */
TidyAttr_OnMOUSEOVER, /**< OnMOUSEOVER= */
TidyAttr_OnMOUSEUP, /**< OnMOUSEUP= */
TidyAttr_OnRESET, /**< OnRESET= */
TidyAttr_OnROWENTER, /**< OnROWENTER= */
TidyAttr_OnROWEXIT, /**< OnROWEXIT= */
TidyAttr_OnSELECT, /**< OnSELECT= */
TidyAttr_OnSUBMIT, /**< OnSUBMIT= */
TidyAttr_OnUNLOAD, /**< OnUNLOAD= */
TidyAttr_PROFILE, /**< PROFILE= */
TidyAttr_PROMPT, /**< PROMPT= */
TidyAttr_RBSPAN, /**< RBSPAN= */
TidyAttr_READONLY, /**< READONLY= */
TidyAttr_REL, /**< REL= */
TidyAttr_REV, /**< REV= */
TidyAttr_RIGHTMARGIN, /**< RIGHTMARGIN= */
TidyAttr_ROLE, /**< ROLE= */
TidyAttr_ROWS, /**< ROWS= */
TidyAttr_ROWSPAN, /**< ROWSPAN= */
TidyAttr_RULES, /**< RULES= */
TidyAttr_SCHEME, /**< SCHEME= */
TidyAttr_SCOPE, /**< SCOPE= */
TidyAttr_SCROLLING, /**< SCROLLING= */
TidyAttr_SELECTED, /**< SELECTED= */
TidyAttr_SHAPE, /**< SHAPE= */
TidyAttr_SHOWGRID, /**< SHOWGRID= */
TidyAttr_SHOWGRIDX, /**< SHOWGRIDX= */
TidyAttr_SHOWGRIDY, /**< SHOWGRIDY= */
TidyAttr_SIZE, /**< SIZE= */
TidyAttr_SPAN, /**< SPAN= */
TidyAttr_SRC, /**< SRC= */
TidyAttr_SRCSET, /**< SRCSET= (HTML5) */
TidyAttr_STANDBY, /**< STANDBY= */
TidyAttr_START, /**< START= */
TidyAttr_STYLE, /**< STYLE= */
TidyAttr_SUMMARY, /**< SUMMARY= */
TidyAttr_TABINDEX, /**< TABINDEX= */
TidyAttr_TARGET, /**< TARGET= */
TidyAttr_TEXT, /**< TEXT= */
TidyAttr_TITLE, /**< TITLE= */
TidyAttr_TOPMARGIN, /**< TOPMARGIN= */
TidyAttr_TRANSLATE, /**< TRANSLATE= */
TidyAttr_TYPE, /**< TYPE= */
TidyAttr_USEMAP, /**< USEMAP= */
TidyAttr_VALIGN, /**< VALIGN= */
TidyAttr_VALUE, /**< VALUE= */
TidyAttr_VALUETYPE, /**< VALUETYPE= */
TidyAttr_VERSION, /**< VERSION= */
TidyAttr_VLINK, /**< VLINK= */
TidyAttr_VSPACE, /**< VSPACE= */
TidyAttr_WIDTH, /**< WIDTH= */
TidyAttr_WRAP, /**< WRAP= */
TidyAttr_XML_LANG, /**< XML_LANG= */
TidyAttr_XML_SPACE, /**< XML_SPACE= */
TidyAttr_XMLNS, /**< XMLNS= */
TidyAttr_EVENT, /**< EVENT= */
TidyAttr_METHODS, /**< METHODS= */
TidyAttr_N, /**< N= */
TidyAttr_SDAFORM, /**< SDAFORM= */
TidyAttr_SDAPREF, /**< SDAPREF= */
TidyAttr_SDASUFF, /**< SDASUFF= */
TidyAttr_URN, /**< URN= */
TidyAttr_ASYNC,
TidyAttr_AUTOCOMPLETE,
TidyAttr_AUTOFOCUS,
TidyAttr_AUTOPLAY,
TidyAttr_CHALLENGE,
TidyAttr_CONTENTEDITABLE,
TidyAttr_CONTEXTMENU,
TidyAttr_CONTROLS,
TidyAttr_DEFAULT,
TidyAttr_DIRNAME,
TidyAttr_DRAGGABLE,
TidyAttr_DROPZONE,
TidyAttr_FORM,
TidyAttr_FORMACTION,
TidyAttr_FORMENCTYPE,
TidyAttr_FORMMETHOD,
TidyAttr_FORMNOVALIDATE,
TidyAttr_FORMTARGET,
TidyAttr_HIDDEN,
TidyAttr_HIGH,
TidyAttr_ICON,
TidyAttr_KEYTYPE,
TidyAttr_KIND,
TidyAttr_LIST,
TidyAttr_LOOP,
TidyAttr_LOW,
TidyAttr_MANIFEST,
TidyAttr_MAX,
TidyAttr_MEDIAGROUP,
TidyAttr_MIN,
TidyAttr_NOVALIDATE,
TidyAttr_OPEN,
TidyAttr_OPTIMUM,
TidyAttr_OnABORT,
TidyAttr_OnAFTERPRINT,
TidyAttr_OnBEFOREPRINT,
TidyAttr_OnCANPLAY,
TidyAttr_OnCANPLAYTHROUGH,
TidyAttr_OnCONTEXTMENU,
TidyAttr_OnCUECHANGE,
TidyAttr_OnDRAG,
TidyAttr_OnDRAGEND,
TidyAttr_OnDRAGENTER,
TidyAttr_OnDRAGLEAVE,
TidyAttr_OnDRAGOVER,
TidyAttr_OnDRAGSTART,
TidyAttr_OnDROP,
TidyAttr_OnDURATIONCHANGE,
TidyAttr_OnEMPTIED,
TidyAttr_OnENDED,
TidyAttr_OnERROR,
TidyAttr_OnHASHCHANGE,
TidyAttr_OnINPUT,
TidyAttr_OnINVALID,
TidyAttr_OnLOADEDDATA,
TidyAttr_OnLOADEDMETADATA,
TidyAttr_OnLOADSTART,
TidyAttr_OnMESSAGE,
TidyAttr_OnMOUSEWHEEL,
TidyAttr_OnOFFLINE,
TidyAttr_OnONLINE,
TidyAttr_OnPAGEHIDE,
TidyAttr_OnPAGESHOW,
TidyAttr_OnPAUSE,
TidyAttr_OnPLAY,
TidyAttr_OnPLAYING,
TidyAttr_OnPOPSTATE,
TidyAttr_OnPROGRESS,
TidyAttr_OnRATECHANGE,
TidyAttr_OnREADYSTATECHANGE,
TidyAttr_OnREDO,
TidyAttr_OnRESIZE,
TidyAttr_OnSCROLL,
TidyAttr_OnSEEKED,
TidyAttr_OnSEEKING,
TidyAttr_OnSHOW,
TidyAttr_OnSTALLED,
TidyAttr_OnSTORAGE,
TidyAttr_OnSUSPEND,
TidyAttr_OnTIMEUPDATE,
TidyAttr_OnUNDO,
TidyAttr_OnVOLUMECHANGE,
TidyAttr_OnWAITING,
TidyAttr_PATTERN,
TidyAttr_PLACEHOLDER,
TidyAttr_POSTER,
TidyAttr_PRELOAD,
TidyAttr_PUBDATE,
TidyAttr_RADIOGROUP,
TidyAttr_REQUIRED,
TidyAttr_REVERSED,
TidyAttr_SANDBOX,
TidyAttr_SCOPED,
TidyAttr_SEAMLESS,
TidyAttr_SIZES,
TidyAttr_SPELLCHECK,
TidyAttr_SRCDOC,
TidyAttr_SRCLANG,
TidyAttr_STEP,
TidyAttr_ARIA_ACTIVEDESCENDANT,
TidyAttr_ARIA_ATOMIC,
TidyAttr_ARIA_AUTOCOMPLETE,
TidyAttr_ARIA_BUSY,
TidyAttr_ARIA_CHECKED,
TidyAttr_ARIA_CONTROLS,
TidyAttr_ARIA_DESCRIBEDBY,
TidyAttr_ARIA_DISABLED,
TidyAttr_ARIA_DROPEFFECT,
TidyAttr_ARIA_EXPANDED,
TidyAttr_ARIA_FLOWTO,
TidyAttr_ARIA_GRABBED,
TidyAttr_ARIA_HASPOPUP,
TidyAttr_ARIA_HIDDEN,
TidyAttr_ARIA_INVALID,
TidyAttr_ARIA_LABEL,
TidyAttr_ARIA_LABELLEDBY,
TidyAttr_ARIA_LEVEL,
TidyAttr_ARIA_LIVE,
TidyAttr_ARIA_MULTILINE,
TidyAttr_ARIA_MULTISELECTABLE,
TidyAttr_ARIA_ORIENTATION,
TidyAttr_ARIA_OWNS,
TidyAttr_ARIA_POSINSET,
TidyAttr_ARIA_PRESSED,
TidyAttr_ARIA_READONLY,
TidyAttr_ARIA_RELEVANT,
TidyAttr_ARIA_REQUIRED,
TidyAttr_ARIA_SELECTED,
TidyAttr_ARIA_SETSIZE,
TidyAttr_ARIA_SORT,
TidyAttr_ARIA_VALUEMAX,
TidyAttr_ARIA_VALUEMIN,
TidyAttr_ARIA_VALUENOW,
TidyAttr_ARIA_VALUETEXT,
/* SVG attributes (SVG 1.1) */
TidyAttr_X, /**< X= */
TidyAttr_Y, /**< Y= */
TidyAttr_VIEWBOX, /**< VIEWBOX= */
TidyAttr_PRESERVEASPECTRATIO, /**< PRESERVEASPECTRATIO= */
TidyAttr_ZOOMANDPAN, /**< ZOOMANDPAN= */
TidyAttr_BASEPROFILE, /**< BASEPROFILE= */
TidyAttr_CONTENTSCRIPTTYPE, /**< CONTENTSCRIPTTYPE= */
TidyAttr_CONTENTSTYLETYPE, /**< CONTENTSTYLETYPE= */
/* MathML