Skip to content

Commit

Permalink
Squashed 'gumbo_subtree/' changes from 433cfc1..189aee2
Browse files Browse the repository at this point in the history
189aee2 fix KR style function declarations for C2X compilers
5f16d4c fix omissions from change long [skipci]
d89915b archive setup.py
23decb0 created updated local (controllable) copy of html5lib tests
382e8f4 unlink dated html5lib tests
10567da fixes to make sigil-gumbo pass html5lib tree-construction tests
7630679 restructure and simplify everything
f907c01 fix parse error by template misuse in table see whatwg/html#8271
20e7be7 correctly handle text in form elements ala nokogirl commit 73c5df2
4469240 prevent very minor memory leak

git-subtree-dir: gumbo_subtree
git-subtree-split: 189aee231c525a17a8b6b0615b93df45aaee2c8f
  • Loading branch information
dougmassay committed Jul 6, 2023
1 parent 5fb28bf commit c001fb4
Show file tree
Hide file tree
Showing 135 changed files with 86,003 additions and 776 deletions.
159 changes: 74 additions & 85 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,85 +1,74 @@
# Compilation artifacts
*.o
*.lo
*.la

# Editor swap files
*.swp
*.swo
*.swn

#emacs editor leftovers
*.*~

#diff leftovers
*.orig

# gtest pieces
gtest
gtest-1.7.0
third_party.tar.gz
testdata.tar.gz
.tar.gz
.zip

# Other build artifacts
/Debug
/visualc/Debug
/visualc/Release
/visualc/gumbo.sdf
/visualc/gumbo.opensdf
/build
.log
.sdf
.opensdf
.deps
.dirstamp
.libs
Makefile
Makefile.in
aclocal.m4
autom4te.cache
compile
config.guess
config.log
config.status
config.sub
configure
core
depcomp
gtest/
gumbo.pc
gumbo_test
gumbo_test.log
gumbo_test.trs
install-sh
libtool
ltmain.sh
m4/
missing
test-driver
test-suite.log

# gyp android artifacts
gumbo_parser.target.mk

# `make dist` artifacts
/gumbo-[0-9].[0-9].tar.gz
/gumbo-[0-9].[0-9]/

# Python dist artifacts
*.pyc
dist
build
python/gumbo.egg-info
python/gumbo/libgumbo.so

# Example binaries
benchmark
clean_text
find_links
get_title
positions_of_class
prettyprint
serialize
well_formed
# Backup files left behind by the Emacs editor.
*~

# Lock files used by the Emacs editor.
.\#*

# emacs auto recovery files from aborted edits
\#*\#

#use ful for stashing files
*.orig
*.keep

# Temporary files used by the vim editor.
.*.swp
.swp

# A hidden file created by the Mac OS X Finder.
.DS_Store

# Image thumbnail database created by windows
Thumbs.db

# Various files created by Visual Studio
*.sln
*.suo
*.vcproj
*.user*
#*.rc
*.ncb
*.pch
*.dep
*.idb
*.exp
*.res
*.manifest
*.ilk
*.pdb
*.def
Release
Debug
BuildLog.htm

# Various files and folders created by CMake
CMakeFiles
CMakeScripts
CMakeCache.txt
*.dir
ALL_BUILD*


# Misc files
*.svn
*.a
*.o
*.obj
*.lib
*.exe
*.dll
*.a
*.app
*.xcodeproj
*.pbxbtree
*.pbxindex
*.build
*.smp
*.pl
*.pyc
*.pyo
*.orig
*.bak
*.rar
build

6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
[submodule "third_party/gtest"]
path = third_party/gtest
url = https://chromium.googlesource.com/external/googletest/
[submodule "testdata"]
path = testdata
url = https://github.com/html5lib/html5lib-tests.git
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ cmake_minimum_required( VERSION 3.0 )

project(gumbo)

find_package(GTest)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/.libs)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/.libs)
Expand All @@ -28,3 +30,7 @@ endif()
add_subdirectory(src/)
add_subdirectory(examples/)

if( ${GTEST_FOUND} )
add_subdirectory(tests/)
endif()

29 changes: 29 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
List of Changes since the Fork
==============================
In reverse chronological order:

- change update foreign attributes to remove xml:base and add xlink:arcrole to follow whatwg spec
- fixed minor memory leaks
- correctly handle text in form elements
- support for new tags including search and to better follow the latest whatwg parsing spec
- fix for handling </p> and </br> in foreign contexts
- Fix multiple warnings including cast to enum from void pointer
- Re-implement adjust_foreign_attributes() with a gperf hash
- Remove special handling of <menuitem> tag
- Remove special handling of <isindex> tag
- Use realloc(3) instead of malloc(3) in enlarge_vector_if_full()
- Use realloc(3) instead of malloc(3) in maybe_resize_string_buffer()
- Make destroy_node() function non-recursive
- Fix signedness of some format specifiers
- Add maximum element nesting limit
- Remove custom allocator support
- Fix recording of source positions for </form> end tags
- Fix TAGSET_INCLUDES macro to work properly with multiple bit flags
- Re-implement gumbo_normalize_svg_tagname() with a gperf hash
- Replace linear array search in adjust_svg_attributes() with a gperf hash
- Fix duplicate TagSet initializer being ignored in is_special_node()
- Add support for <dialog> tag
- Add missing static qualifiers to hide symbols that shouldn't be extern
- Replace use of locale-dependant ctype.h functions with custom, ASCII-only equiv
- add ability and interface to modify/edit the dom tree after parsing completes
- allow support for xhtml parsing rules controllable via GumboOptions use_xhtml_rules flag
Loading

0 comments on commit c001fb4

Please sign in to comment.