Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Remove well_formed.cc, update Makefile.am, one parser.c fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Feb 12, 2015
1 parent 41d9f19 commit 0449271
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 77 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
*.swo
*.swn

#emacs editor leftovers
*.*~

#diff leftovers
*.orig

# gtest pieces
gtest
gtest-1.7.0

# Other build artifacts
/Debug
/visualc/Debug
Expand Down
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ gumbo_test_DEPENDENCIES += check-local
gumbo_test_LDADD += gtest/lib/libgtest.la gtest/lib/libgtest_main.la
endif

noinst_PROGRAMS = clean_text find_links get_title positions_of_class benchmark serialize prettyprint well_formed
noinst_PROGRAMS = clean_text find_links get_title positions_of_class benchmark serialize prettyprint
LDADD = libgumbo.la
AM_CPPFLAGS = -I"$(srcdir)/src"

Expand All @@ -108,4 +108,3 @@ positions_of_class_SOURCES = examples/positions_of_class.cc
benchmark_SOURCES = benchmarks/benchmark.cc
serialize_SOURCES = examples/serialize.cc
prettyprint_SOURCES = examples/prettyprint.cc
well_formed_SOURCES = examples/well_formed.cc
73 changes: 0 additions & 73 deletions examples/well_formed.cc

This file was deleted.

3 changes: 1 addition & 2 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1322,12 +1322,11 @@ static bool has_node_in_scope(GumboParser* parser, const GumboNode* node) {
// Like has_an_element_in_scope, but restricts the expected qualified name to a
// range of possible qualified names instead of just a single one.
static bool has_an_element_in_scope_with_tagname(GumboParser* parser, gumbo_tagset qualset) {
bool found = has_an_element_in_specific_scope(parser, qualset, false, (gumbo_tagset) { TAG(APPLET),
return has_an_element_in_specific_scope(parser, qualset, false, (gumbo_tagset) { TAG(APPLET),
TAG(CAPTION), TAG(HTML), TAG(TABLE), TAG(TD), TAG(TH), TAG(MARQUEE),
TAG(OBJECT), TAG_MATHML(MI), TAG_MATHML(MO), TAG_MATHML(MN),
TAG_MATHML(MS), TAG_MATHML(MTEXT), TAG_MATHML(ANNOTATION_XML),
TAG_SVG(FOREIGNOBJECT), TAG_SVG(DESC), TAG_SVG(TITLE) });
return found;
}

// http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#has-an-element-in-list-item-scope
Expand Down

0 comments on commit 0449271

Please sign in to comment.