\n");
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_431739.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [#431739] Spaces carried into empty block tags
4 |
5 |
6 | This is a test
7 |
Example
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_456596.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #456596 ] Missing attribute name garbles output
4 |
5 |
6 | System News
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/cfg_647900.txt:
--------------------------------------------------------------------------------
1 | // HTML Tidy configuration file created by TidyGUI
2 | indent: auto
3 | tidy-mark: no
4 | clean: yes
5 | drop-font-tags: yes
6 | logical-emphasis: yes
7 | indent-attributes: yes
8 | force-output: yes
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1004512.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | font tag with -clean
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1333579.html:
--------------------------------------------------------------------------------
1 |
2 | 1333579
3 |
4 | inferred table |
5 |
6 |
Paragraph Text nested in a DIV
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_427846.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test Input For Bug #427846
4 |
5 |
6 |
7 |
8 | text-one
9 |
10 | text-two
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_629885.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [629885] - Unbalanced quote in CSS Scrambles Doc
4 |
7 |
8 |
9 | Test
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_634889.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ 634889 ] Problem with <o:p> ms word tag
4 |
5 |
6 | Probably OK, now that ParseTagNames() is fixed.
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1145571.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | invalid name to id
5 |
6 |
7 |
8 | a
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1452744.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | 1452744
6 |
7 |
8 | Test
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/cfg_427826.txt:
--------------------------------------------------------------------------------
1 | // Tidy configuration file for bug #427826
2 | indent: auto
3 | char-encoding: latin1
4 | tidy-mark: no
5 | clean: yes
6 | drop-font-tags: yes
7 | logical-emphasis: yes
8 | indent-attributes: yes
9 | output-xhtml: yes
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_1014993.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | php-like tag
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1603538-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | | Norway
5 | |
6 |
7 | | Sweden
8 | |
9 |
10 | | Switzerland
11 | |
12 |
13 | | Turkey
14 | |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/tests/input/in_427825.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test user defined tags - bug #427825
5 |
6 |
7 | Test-1Test-3
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1015959.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #1015959 ] inline propagation
5 |
6 |
7 |
8 | 1
9 | 2
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1069553.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | test NestedList()
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1436578.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1436578
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_427845.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #427845 ] Doctypes are output on multiple lines
5 |
6 |
7 | Use "--wrap 60" on the command line
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_433656.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #433656 ] Improve support for PHP
5 |
6 |
7 | (some text)
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_434940.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #434940 ] --show-body-only: print only body contents
5 |
6 |
7 | Use "--show-body-only yes" on the command line
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_435922.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #435922 ] Missing <form> around <input> no warning
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.1
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/cfg_default.txt:
--------------------------------------------------------------------------------
1 | // HTML Tidy configuration file created by TidyGUI
2 | indent: auto
3 | char-encoding: latin1
4 | tidy-mark: no
5 | clean: yes
6 | drop-font-tags: yes
7 | logical-emphasis: yes
8 | indent-attributes: yes
9 | // output-xhtml: yes
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_1235296.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1235296
5 |
6 |
7 | xa1
8 | xa1
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_427839.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test Input For Bug #427839
5 |
6 |
7 | This is a test. Use "-asxhtml --doctype omit" on the command line.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_537604.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | this is a test of ©. &, <, >, ', " must be recognized.
6 |
7 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-8.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 | x
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/13-2-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/cfg_473490.txt:
--------------------------------------------------------------------------------
1 | // Tidy configuration file for bug #473490
2 | tidy-mark: no
3 | wrap: 0
4 | output-xhtml: yes
5 | doctype: auto
6 | quote-nbsp: yes
7 | uppercase-tags: yes
8 | quote-ampersand: yes
9 | add-xml-space: no
10 | show-warnings:no
11 | quiet: yes
12 |
--------------------------------------------------------------------------------
/tests/input/in_1069549.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | test NestedList()
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1423252.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [1423252] missing text node, and font propagation
5 |
6 |
7 | a
8 | b
9 | c
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1632218.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1632218 - entity parsing
4 |
5 |
6 |
7 | link
8 | link
9 | link
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_427834.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | [ #427834 ] Warning given for newline in DOCTYPE
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-7.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/2-1-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/2.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/2-1-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/2.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/2-1-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/2.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/6-3-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.3.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/8-1-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/8.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/8-1-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/8.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/8-1-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/8.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/cfg_431721.txt:
--------------------------------------------------------------------------------
1 | // Tidy configuration file for bug #431721
2 | indent: auto
3 | new-inline-tags: o:p
4 | char-encoding: latin1
5 | tidy-mark: no
6 | clean: yes
7 | drop-font-tags: yes
8 | logical-emphasis: yes
9 | word-2000: yes
10 | indent-attributes: yes
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/cfg_444394.txt:
--------------------------------------------------------------------------------
1 | // Tidy configuration file for bug #444394
2 | indent: auto
3 | new-inline-tags: o:p
4 | char-encoding: latin1
5 | tidy-mark: no
6 | clean: yes
7 | drop-font-tags: yes
8 | logical-emphasis: yes
9 | word-2000: yes
10 | indent-attributes: yes
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1003994.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_1090318.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_1410061-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1410061 - issue 1 inferred ul
4 |
5 |
6 | In bold
7 | Not in bold
8 | With font size 6
9 | But should NOT be indented
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_427675.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | This text belongs in a noframes element.
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_435920.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #435920 ] Space inserted before </td> causes probs
4 |
5 |
6 | bla
7 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_441508.html:
--------------------------------------------------------------------------------
1 |
2 | [ #441508 ] parser.c: BadForm() function broken
3 |
4 |
9 |
10 |
3 |
4 | [ #467863 ] un-nest <a>
5 |
6 | A B C
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_473490.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #473490 ] DOCTYPE for Proprietary HTML to XHTML bad
5 |
6 |
7 |
8 | Test
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_640473.html:
--------------------------------------------------------------------------------
1 | [ 640473 ] new-empty-tags doesn't work, breaks doc
2 |
3 | Foo bar foo foo foo
4 | This is a test
5 |
6 |
7 | This is a pre-formatted Baz!
8 |
9 |
10 |
--------------------------------------------------------------------------------
/bin/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = foreign
2 |
3 | .PHONY: test
4 |
5 | AM_CFLAGS = @CFLAGS@ @WARNING_CFLAGS@
6 |
7 | INCLUDES = -I$(top_srcdir)/include
8 |
9 | bin_PROGRAMS = tidyp
10 | tidyp_SOURCES = ../src/tidyp.c
11 |
12 | tidyp_LDADD = $(top_builddir)/src/libtidyp.la
13 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-10.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 |
8 | x
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-9.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 | x
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/9-3-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/9.3.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1145572.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | name vs id in anchor elements
6 |
7 |
8 | a
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_427818.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #427818 ] Missing quotes cause segfaults
5 |
6 |
7 | link
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_443576.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #443576 ] End script tag inside scripts problem
4 |
5 |
6 | ');
9 | // -->
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_552861.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test Input For Bug #552861
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_655338.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | [ 655338 ] Tidy leaves XML decl in wrong place
6 |
7 | foo
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_836462-3.html:
--------------------------------------------------------------------------------
1 |
2 |
test
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/12-1-1-1.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/12.1.1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/13-1-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/13.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/3-3-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.3.1
5 |
6 |
7 | Does not use stylesheets.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/6-3-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.3.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/7-1-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/7.1.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/9-3-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/9.3.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/9-3-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/9.3.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/9-3-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/9.3.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/9-3-1-5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/9.3.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/9-3-1-6.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/9.3.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/cfg_540045.txt:
--------------------------------------------------------------------------------
1 | // Tidy configuration file for bug #540045
2 | wrap: 64
3 | indent: no
4 | indent-spaces: 4
5 | add-xml-decl: yes
6 | #output-xhtml: yes
7 | break-before-br: yes
8 | clean: yes
9 | logical-emphasis: yes
10 | enclose-text: yes
11 | enclose-block-text: yes
12 |
--------------------------------------------------------------------------------
/tests/input/in_1410061-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1410061 - issue 2 - inline propagation
5 |
6 |
7 | In bold
8 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_431736.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [#431736] Doctype decl added before XML decl
5 |
6 |
7 | Run tidy w/ -asxhtml or -asxml options...
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_435923.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #435923 ] Preserve case of attribute names
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_646946.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
7 |
--------------------------------------------------------------------------------
/tests/input/in_696799.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ 696799 ] Crash: <script language="">
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 |
8 | Hello
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 | Hello
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/2-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/2.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/6-2-1-1.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/6.2.1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/6-2-2-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.2.2
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/7-1-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/7.1.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/7-1-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/7.1.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1055398.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | test whether repairing duplicate attributes works
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1445570.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1445570
5 |
6 |
7 | This is a picture of 'Water Lilly'
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_427662.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [#427662] BLOCK/INLINE before TABLE parsed wrong
4 |
5 |
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-10-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.10
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-4-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.4
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 |
8 | Hello
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/12-1-1-2.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/12.1.1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/13-1-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/13.1.1
5 |
6 |
7 | click here
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/3-5-2-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.5.2
5 |
6 |
7 | This may be a header.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/3-5-2-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.5.2
5 |
6 |
7 | This may be a header.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/3-6-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.6.1
5 |
6 |
7 | Just an li by itself
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/6-2-2-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.2.2
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/6-2-2-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.2.2
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/7-4-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test 7.4.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_433040.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #433040 ] Anchor tag without attributes deleted
5 |
6 |
7 | Tidy strips Anchor tags when there are no attributes
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_676205.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [676205] <img src="> crashes Tidy
6 |
7 |
8 |
2 |
3 |
4 | aert1.0/1.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-4-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.4.1
5 |
6 |
7 | Baby Walking
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/12-1-1-3.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/12.1.1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/4-3-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aert1.0/4.3.1 - The HTML element does not contain a lang attribute
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/4-3-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/4.3.1 - The HTML element does not contain a valid lang attribute
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_1107622.html:
--------------------------------------------------------------------------------
1 |
3 |
4 | name to id
5 |
6 |
7 |
8 | a
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1316307-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1316307-2
4 |
5 |
6 |
7 |
8 | |
9 | Cell Data
10 | |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_438954.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #438954 ] Body tag w/attributes omitted w/hide-end
5 |
6 |
7 | Use "--hide-endtags yes" on command line
8 |
9 |
--------------------------------------------------------------------------------
/tests/accessibility/11-2-1-6.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/11.2.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/3-5-2-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.5.2
5 |
6 |
7 | This may be a header.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/6-1-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.1.1
5 |
6 |
7 |
8 | hello
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/6-3-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.3.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/6-3-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.3.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/8-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/8.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1086083.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | |
11 | Huh?
12 | |
13 |
14 |
15 |
16 | Huh?
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/input/in_1586158.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 1586158
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_431731.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #431731 ] Inline emphasis inconsistent propagation
4 |
5 |
6 | OUTSIDE
7 | OUTSIDE
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_431958.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | [ #431958 ] Comments always indented
7 |
8 |
9 |
10 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/accessibility/2-1-1-5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/2.1.1
5 |
6 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/3-5-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.5.1
5 |
6 |
7 | First Heading
8 | Next Heading
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/7-1-1-5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/7.1.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1056910.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | list fusion should not happen
5 |
6 |
7 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_427677.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #427677 ] TrimInitialSpace() can trim too much
4 |
5 |
6 | This is a Red
7 |
8 | link
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_434047.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #434047 ] Mixed content in 4.01 Strict not allowed
5 |
6 |
7 |
8 |
9 | | Some text. |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-6-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.6
5 |
6 |
7 | The sound of one hand clapping (au)
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-6-5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.6
5 |
6 |
7 | The sound of one hand clapping (ra)
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-6-6.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.6
5 |
6 |
7 | The sound of one hand clapping (rm)
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/7-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/7.1.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/7-2-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/7.2.1
5 |
6 |
7 | Here is a word of text.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1986717-1.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | 1986717
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1986717-2.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | 1986717
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_433359.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #433359 ] Empty iframe elements trimmed
5 |
6 |
7 | This is a test
8 |
11 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_433666.html:
--------------------------------------------------------------------------------
1 |
2 | [ #433666 ] Attempt to repair duplicate attributes
3 |
4 |
11 |
12 |
2 |
3 |
4 | [ #435917 ] <input onfocus=""> reported unknown attr
5 |
6 |
7 | bug #1
8 |
9 | bug #2
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-6-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.6
5 |
6 |
7 | The sound of one hand clapping (wav)
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-6-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.6
5 |
6 |
7 | The sound of one hand clapping (aiff)
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-6-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.6
5 |
6 |
7 | The sound of one hand clapping (snd)
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/10-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/10.1.1
5 |
6 |
7 | Opens in new window.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/7-5-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test 7.5.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_1055304.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | 1055304
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_427633.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [#427663] Line endings not supported correctly
5 |
6 |
7 | This is a carriage return
This is a Unix line-ending
8 | This is a DOS line ending
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_467865.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
[ #467865 ] un-nesting is incorrect
5 |
6 | (foo bar).
7 | ...
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_656889.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ 656889 ] textarea text and line wrapping
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-2-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.2
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/10-1-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/10.1.1
5 |
6 |
7 | Opens in new window.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/13-2-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/13.2.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/6-1-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.1.1
5 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_1638062.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16380628: nested emphasis
5 |
6 |
7 | now how about this
8 |
this is an error and this is not
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_1720953.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | 1720853
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/INSTALL:
--------------------------------------------------------------------------------
1 | Install as any standard package:
2 |
3 | $ ./configure
4 |
5 | $ make
6 |
7 | $ sudo make install
8 |
9 | If you do NOT have a ./configure program, then you are working from
10 | the source repository, not the tarball. Please get a release tarball
11 | from http://github.com/petdance/tidyp/downloads.
12 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-5-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.5
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/6-5-1-1.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/6.5.1
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1117013.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | test 1117013
7 |
8 |
9 | a
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_427830.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test Input For Bug #427830
5 |
6 |
7 | Tidy uses an incorrect XHTML 1.0 Namespace,
8 | even if the correct namespace is given.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_471264.html:
--------------------------------------------------------------------------------
1 |
3 |
4 | [ #471264 ] Reduce blank lines in output
5 |
6 |
7 | - first element
8 | - second element
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_427844.html:
--------------------------------------------------------------------------------
1 |
2 |
4 | [ #427844 ] End tags containing whitespace warning
--------------------------------------------------------------------------------
/tests/input/in_431956.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Test
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_470688.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #470688 ] doesn't cleanup badly nested tags right
6 |
7 |
8 | RIGHT TRIANGLES
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/13-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/13.1.1
5 |
6 |
7 | cats
8 | some text
9 | cats
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_1003361.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1003361
4 |
5 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_431964.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #431964 ] table height="" not flagged as error
5 |
6 |
7 |
8 |
9 | | A cell. |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_433360.html:
--------------------------------------------------------------------------------
1 |
2 | [ #433360 ] Tags with missing > can't be repaired
3 |
4 |
5 | There seems to be an error occurring when you don't
6 | end a tag with a >. Tidy won't fix it.
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/input/in_441568.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #441568 ] Font tags handling different
5 |
6 |
7 |
8 |
9 | text-one
10 |
11 |
12 |
13 | text-two
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-2-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | bobby/g13
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-3-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.3
5 |
6 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/6-5-1-2.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/6.5.1
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_603128.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ 603128 ] tidy adds newlines after </html>
5 |
6 |
7 | There is exactly one line-ending after the </html> -
8 | older versions of Tidy will add an additional line-ending.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/cfg_634889.txt:
--------------------------------------------------------------------------------
1 | tidy-mark: no
2 | output-xml: yes
3 | drop-proprietary-attributes: no
4 | new-inline-tags: o:lock, o:p, v-f, v-formula, v-formulas,
5 | v-imagedata, v-path, v-shape, v-shapetype, v-stroke
6 | new-empty-tags:
7 | new-blocklevel-tags:
8 | new-pre-tags:
9 | wrap-sections: no
10 | drop-empty-paras: no
11 |
--------------------------------------------------------------------------------
/tests/input/in_1715153.html:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_427821.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #427821 ] XHTML TRANSITIONAL doctype set wrongly
5 |
6 |
7 |
8 |
9 | This is a test - use "-asxml" on the command line.
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/iconvtc.h:
--------------------------------------------------------------------------------
1 | #ifndef __ICONVTC_H__
2 | #define __ICONVTC_H__
3 | #ifdef TIDY_ICONV_SUPPORT
4 |
5 | /* iconvtc.h -- Interface to iconv transcoding routines
6 |
7 | (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
8 | See tidyp.h for the copyright notice.
9 |
10 | */
11 |
12 |
13 | #endif /* TIDY_ICONV_SUPPORT */
14 | #endif /* __ICONVTC_H__ */
15 |
--------------------------------------------------------------------------------
/README:
--------------------------------------------------------------------------------
1 | tidyp is a fork of tidy on SourceForge at http://tidy.sf.net. The
2 | library name is "tidyp", and the command-line tool is also "tidyp"
3 | but all internal API stays the same.
4 |
5 | tidyp will validate your HTML, and output cleaned-up HTML.
6 |
7 | The tidyp homepage is at http://tidyp.com/.
8 |
9 | For installation instructions, see INSTALL.
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-2-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.2
5 |
6 |
7 |
8 | D
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/12-4-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/12.4.1
5 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/accessibility/6-5-1-3.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/6.5.1
6 |
7 |
8 |
9 | Upgrade your browser to one that supports frames!
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/cfg_640473.txt:
--------------------------------------------------------------------------------
1 | # [640743] same as default config ...
2 | indent: auto
3 | char-encoding: latin1
4 | tidy-mark: no
5 | clean: yes
6 | drop-font-tags: yes
7 | logical-emphasis: yes
8 | indent-attributes: yes
9 |
10 | # + declared tags
11 | new-blocklevel-tags: foo
12 | new-inline-tags: bar
13 | new-empty-tags: zippo
14 | new-pre-tags: baz
15 |
--------------------------------------------------------------------------------
/tests/input/in_2359929.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | A test
5 |
6 |
7 |
8 | Say hello
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_427833.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | Escape sequences
6 |
7 |
8 | #include <stdio.h>
9 | #include <stdio.h>
10 | #include <stdio.h>
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_431965.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #431965 ] XHTML Strict seen as Transitional w/div
6 |
7 |
8 |
9 | Test
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1286029.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | HTML NOHREF - HTML Code Tutorial
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_508936.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #508936 ] Parse CSS Selector prefix in config file
4 |
5 |
6 | Allow user to specify
7 | prefix for
8 | class names Tidy generates with --clean yes option.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_531964.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | [ 531964 ] <p /> gets tidied into <p /></p>
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/accessibility/2-2-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Foreground and background color do not contrast sufficiently
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/accessibility/2-2-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Foreground and background color do not contrast sufficiently
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/accessibility/2-2-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Foreground and background color do not contrast sufficiently
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/accessibility/2-2-1-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Foreground and background color do not contrast sufficiently
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/accessibility/6-5-1-4.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | aert1.0/6.5.1
6 |
7 |
8 | hello
9 |
10 | content within noframes
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_1231279.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | 1231279
7 |
8 |
9 | x
10 | y
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_543262.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Preferences
5 |
10 |
11 |
12 | Test
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_695408.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ 695408 ] Empty spans getting dropped, even if they have attrs
4 |
5 |
6 |
7 |
8 | |
9 | |
10 | |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/accessibility/12-4-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/12.4.1
5 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/accessibility/12-4-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/12.4.1
5 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/accessibility/6-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/6.1.1 - This page uses a stylesheet
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_2709860.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | | Topic |
10 | version |
11 | Plugins/standalone ? |
12 | Foobar |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/tests/input/in_443381.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #443381 ] end tags for empty elements in XHTML
6 |
7 |
8 | Test
Test
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/1-2-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.2.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_427820.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test Input For Bug #427820
4 |
5 |
6 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_545772.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ 547057 ] --output-xhtml hangs on most files
5 |
6 |
9 |
10 |
11 |
12 | test
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_616744.xml:
--------------------------------------------------------------------------------
1 |
2 | This is some stuff in a para.
3 | There's a "command"
4 | in it.
5 |
6 |
7 | This line is indented 4 spaces.
8 |
9 | This (3rd) line is indented 8 spaces.
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/output/out_427820.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test Input For Bug #427820
6 |
7 |
8 |
9 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/tests/input/in_1510101.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_487204.html:
--------------------------------------------------------------------------------
1 |
3 |
4 | [ #487204 ] Duplicate DIV style attribute generated
5 |
6 |
7 | - One
8 | - Two
9 | - Three
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/accessibility/13-1-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/13.1.1
5 |
6 |
7 | Want to find out more about small furry animals?
8 | Then click here and this link will take you there.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_1078345.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Some text.
8 |
13 |
14 |
15 | Text
16 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/mappedio.h:
--------------------------------------------------------------------------------
1 | #ifndef __TIDY_MAPPED_IO_H__
2 | #define __TIDY_MAPPED_IO_H__
3 |
4 | /* Interface to mmap style I/O
5 |
6 | (c) 2006 (W3C) MIT, ERCIM, Keio University
7 | See tidyp.h for the copyright notice.
8 |
9 | */
10 |
11 | #if defined(_WIN32)
12 | int TY_(DocParseFileWithMappedFile)( TidyDocImpl* doc, ctmbstr filnam );
13 | #endif
14 |
15 | #endif /* __TIDY_MAPPED_IO_H__ */
16 |
--------------------------------------------------------------------------------
/tests/input/in_433672.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #433672 ] Anchor enclosing Header tags is omitted
4 |
5 |
6 | Section heading
7 |
8 |
9 |
10 | Goto Another Heading
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_500236.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/xmlcases.txt:
--------------------------------------------------------------------------------
1 | 427837 0
2 | 431956 0
3 | 432677 0
4 | 433604 0
5 | 433607 0
6 | 433670 0
7 | 434100 2
8 | 473490 1
9 | 480406 0
10 | 480701 0
11 | 500236 1
12 | 503436 1
13 | 537604 0
14 | 540045 0
15 | 542029 1
16 | 586555 1
17 | 616744 0
18 | 634889 1
19 | 640474 0
20 | 646946 0
21 | 1003994 2
22 | 1004008 1
23 | 1030944 0
24 | 1365706 0
25 | 1448730 0
26 | 1510101 0
27 | 1573338 0
28 |
--------------------------------------------------------------------------------
/tests/accessibility/3-6-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.6.1
5 |
6 |
7 |
8 | This is only for the indent.
9 | And this as well.
10 |
11 | A further indent.
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/accessibility/3-6-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/3.6.1
5 |
6 |
7 |
8 | This is only for the indent.
9 | And this as well.
10 |
11 | A further indent.
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/accessibility/4-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/4.1.1
5 |
6 |
7 |
8 | In Luis Bunuel's 1967 film, "Belle de Jour", the stunning Catherine Deneuve
9 | portrays a woman leading a double life.
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/accessibility/9-1-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/9.1.1
5 |
6 |
7 |
8 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_501669.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #501669 ] width="n*" marked invalid on <COL>
6 |
7 |
8 |
9 |
10 |
11 | | xx |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_1326520.html:
--------------------------------------------------------------------------------
1 |
2 | 1326520
3 |
4 |
5 |
6 |
7 |
8 | -
9 |
17 |
-
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/accessibility/5-5-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.5.1
5 |
6 |
7 |
8 | This table has no summary
9 |
10 | | 1 | 2 |
11 | | 3 | 4 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/accessibility/5-5-2-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.5.2
5 |
6 |
7 |
8 |
9 |
10 | | 1 | 2 |
11 | | 3 | 4 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_539369.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | [ 539369 ] Infinite loop </frame> after </frameset>
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/input/in_427823.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #427823 ] Multiple <BODY>'s in <NOFRAMES> allowed
4 |
5 |
6 |
7 |
8 |
9 | Text in body 1.
10 |
11 |
12 | Text in illegal body 2.
13 |
14 | Text in inferred illegal body 3.
15 |
16 |
17 |
18 | Text in inferred illegal body 4.
19 |
--------------------------------------------------------------------------------
/tests/input/in_553468.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #553468 ] Doesn't warn about <u> in XHTML strict
6 |
7 |
8 | Tidy doesn't complain about underlining in
9 | XHTML strict documents
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_566542.html:
--------------------------------------------------------------------------------
1 | [ 566542 ] parser hangs
2 |
4 | Identify the member disks with ssaraid -H -lssa0 -n pdisk
5 | [n] -u -a use=member
6 |
7 |
Identify the hot spare with ssaraid -H -lssa0 -n pdisk
8 | [n]-u -a use=spare
9 |
--------------------------------------------------------------------------------
/tests/input/in_593705.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ 593705 ] Use of < comparison symbol confuses Tidy
5 |
11 |
12 |
13 | Does the script confuse Tidy?
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_688746.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ 688746 ] incorrect charset value for utf-8
4 |
5 |
6 |
7 |
8 |
9 | How to…
10 | Place an extended-hours order:
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_427835.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test input file for bug #427835
6 |
7 |
8 | Test input file for bug #427835
9 | Use with or without the -asxhtml option.
10 | -clean has no effect
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_480843.xhtml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | [ #480843 ] Proposed change to FixID()
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/input/in_427671.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [#427671] <LI> w/FRAME/FRAMESET/OPTGROUP/OPTION loop
4 |
5 |
6 |
7 | - first item
8 | - frame item
9 | - frameset item
10 |
11 |
12 | - last item
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_525081.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ 525081 ] frameset rows attr. not recognized
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_539369a.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | [ 539369 ] Test </frameset> inside <noframes>
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/accessibility/5-5-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.5.1
5 |
6 |
7 |
8 | This table has an invalid summary (NULL)
9 |
10 | | 1 | 2 |
11 | | 3 | 4 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_431898.html:
--------------------------------------------------------------------------------
1 |
5 |
6 | ]>
7 |
8 | [ #431898 ] Tidy messes up X(HT)ML documents
9 |
10 |
11 | Test
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_501230.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #501230 ] "0" (Zero) has to be lower case !
6 |
7 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_427811.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [#427811] FRAME inside NOFRAME infinite loop
4 |
5 |
10 |
11 |
12 | Need a Frame Capable Browser!
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/tests/input/in_446019.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #446019 ] <img name="foo"> allowed in XTHML-Strict
6 |
7 |
8 |
9 |
Test
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/input/in_487283.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #487283 ] >/select< does not terminate >option<
4 |
5 |
6 |
13 |
14 |
15 | | row 1, cell 1
16 | | row 1, cell 2
17 | |
18 | | row 2, cell 1
19 | | row 2, cell 2
20 | |
21 |
22 |
--------------------------------------------------------------------------------
/tests/input/in_443678.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #443678 ] Unclosed <script> in <head> messes Tidy
4 |
11 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/input/in_480701.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-1-10.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/1.1.1
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/accessibility/5-5-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.5.1
5 |
6 |
7 |
8 | This table has an invalid summary (all spaces)
9 |
10 | | 1 | 2 |
11 | | 3 | 4 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_676205.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | [ 676205 ] <img src="> crashes Tidy
7 |
8 |
9 |
10 |
11 |
2 |
3 |
4 |
5 |
6 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_2085175.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 2085175
6 |
7 |
8 | some text
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_449348.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #449348 ] Whitespace added/removed to inline tags
5 |
6 |
7 | Make this wrap at the end of the line12345678: white-space
9 |
10 | This is long enough a wrap at the next line text
11 | ...
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_586562.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | [586562] Two Doctypes
8 |
9 |
10 | Two DOCTYPE's!
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_706260.html:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | #706260 size not accepted for input
7 |
8 |
9 |
10 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/xmltest.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | REM xmltest.cmd - execute all XML test cases
4 | REM
5 | REM (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
6 | REM See tidy.c for the copyright notice.
7 | REM
8 | REM
9 | REM
10 | REM CVS Info:
11 | REM
12 | REM $Author: creitzel $
13 | REM $Date: 2003/03/19 18:33:12 $
14 | REM $Revision: 1.1 $
15 |
16 | for /F "tokens=1*" %%i in (xmlcases.txt) do call onetest.cmd %%i %%j
17 |
--------------------------------------------------------------------------------
/tests/input/cfg_508936.txt:
--------------------------------------------------------------------------------
1 | clean: yes
2 |
3 | # Error 1: escaped number too long. Max 4 hex digits
4 | # css-prefix: \77777abc
5 |
6 | # Error 2: class prefix starts with digit
7 | # css-prefix: 77abc
8 |
9 | # Error 3: Unescaped invalid character
10 | # css-prefix: abc
11 |
12 | # OK 1: Plain old name
13 | # css-prefix: abc123
14 |
15 | # OK 2: Begin w/ escaped number
16 | # css-prefix: \77abc
17 |
18 | # OK 3: escaped number
19 | css-prefix: abc\8
20 |
--------------------------------------------------------------------------------
/tests/input/in_671087.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | tidy loops with --new-inline-tags table,tr,td
6 |
7 |
8 |
9 |
10 | | table heading |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_1052758.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | Jean Racine
6 |
7 |
8 |
9 | Pour qui sont ces serpents qui sifflent sur vos
10 | têtes ?
11 | — Jean Racine, Andromaque
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_1590220-2.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | 1590220 - Example 2
7 |
8 |
9 |
10 |
11 | Text of first PRE block
12 | | This is a test cell |
13 | More errant table content - this should not be PRE'd
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/accessibility/5-5-1-6.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.5.1
5 |
6 |
7 |
8 | This table has an invalid summary (placeholder 'table summary')
9 |
10 | | 1 | 2 |
11 | | 3 | 4 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_2705873-1.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | Virtual Library
8 |
9 |
10 | Moved to example.org.
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_426885.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #426885 ] Definition list w/Center crashes
4 |
5 |
6 | Heading 1
7 |
Term 1
8 |
Term 2
9 | Heading 2
10 |
11 |
Term 3
12 |
Term 4
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_427810.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #427810 ] Proprietary elements not reported as err
4 |
5 |
6 |
7 | Test inline element
8 |
9 | Proprietary inline element (wbr) - note starts on new line, doesn't need end tag
10 | Proprietary inline element (nobr)
11 | Test inline element
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_435903.html:
--------------------------------------------------------------------------------
1 |
2 | [ #435903 ] Script element w/body child to table bug>
3 |
4 |
5 |
6 | |
7 | |
8 |
9 |
10 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/input/in_427819.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #427819 ] OPTION w/illegal FONT eats whitespace
4 |
5 |
6 |
16 |
17 |
--------------------------------------------------------------------------------
/tests/input/in_517550.xhtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 | [ #517550 ] parser misinterprets ?xml-stylesheet PI
8 |
9 |
10 | A test document
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1426419.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [1426419] mal-formed inline elements
6 |
7 |
8 | Bold Bold and Italics Italics Only
9 | Mono Mono and Bold Bold Only
10 | Italics Italics and Bold Bold Only
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_1590220-1.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | 1590220 - Example 1
7 |
8 |
9 |
10 |
11 | Text of first PRE block
12 |
13 |
14 |
15 |
16 | Text of second PRE block
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/input/in_511243.xhtml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | [ #511243 ] xhtml utf8 format bug
7 |
8 |
9 |
10 |
11 | How to…
12 | Place an extended-hours order:
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/accessibility/1-1-8-1.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
Frame elements missing valid long descriptions
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/input/in_2046048.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | 2046048
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 90
14 | 60
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/input/in_433856.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | [ #433856 ] Access violation w/Word files w/font tag
7 |
8 |
9 |
10 | De kop
11 |
12 | Dit is een test.
13 |
14 |
--------------------------------------------------------------------------------
/src/charsets.h:
--------------------------------------------------------------------------------
1 | /* charsets.h -- character set information and mappings
2 |
3 | (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
4 | See tidyp.h for the copyright notice.
5 |
6 | */
7 |
8 | uint TY_(GetEncodingIdFromName)(ctmbstr name);
9 | uint TY_(GetEncodingIdFromCodePage)(uint cp);
10 | uint TY_(GetEncodingCodePageFromName)(ctmbstr name);
11 | uint TY_(GetEncodingCodePageFromId)(uint id);
12 | ctmbstr TY_(GetEncodingNameFromId)(uint id);
13 | ctmbstr TY_(GetEncodingNameFromCodePage)(uint cp);
14 |
--------------------------------------------------------------------------------
/tests/input/in_445074.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | [ #445074 ] XHTML requires form method="post"
6 |
7 |
8 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/input/in_678268.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Error: File Copy Error! File=C:\WinNT\
5 | System32\PERFLIB_PERFDATA_<#>.DAT (copying to a
6 | '.fil').
7 |
8 |
9 | Error: File Copy Error! File=C:\WinNT\
10 | System32\PERFLIB_PERFDATA_
11 | <#>.DAT (copying to a '.fil').
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/alltest.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | REM alltest.cmd - execute all test cases
4 | REM
5 | REM (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
6 | REM See tidy.c for the copyright notice.
7 | REM
8 | REM
9 | REM
10 | REM CVS Info:
11 | REM
12 | REM $Author: arnaud02 $
13 | REM $Date: 2006/12/30 08:36:33 $
14 | REM $Revision: 1.3 $
15 |
16 | REM (for MS compiler users):
17 | REM call alltest1 ..\build\msvc\Release\tidy.exe .\tmp
18 |
19 | call alltest1 ..\bin\tidy.exe .\tmp
20 |
--------------------------------------------------------------------------------
/tests/input/in_431719.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test input for bug #431719
5 |
6 |
7 | Problem is spec want "HTML 3.2 Final", but everyone
8 | in the world, including Tidy, uses "HTML 3.2". So the
9 | software has to recognize both FPI's as equivalent.
10 |
11 |
12 |
13 | | Missing table summary only applies to HTML 4.x |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/input/in_540045.xhtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 | [ 540045 ] Tidy strips all the IMG tags out!
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_836462.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 836462
5 |
6 |
7 | Heading
8 |
9 |
10 | First list item
11 | Second list item
12 | Third list item
13 |
14 | First list item 2
15 | Second list item 2
16 |
17 | Fourth list item
18 | Fifth list item
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/input/in_1198501.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
7 | 1198501
8 |
9 |
10 |
11 |
12 | | 1 |
13 | 2 |
14 |
15 |
16 | | 3 |
17 | 4 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/input/in_540571.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | #540571 Inconsistent behaviour with span inline element
4 |
5 |
6 | Hello World
7 |
8 | The font inline is moved so it becomes a child of the h1 element.
9 |
10 | Hello World
11 |
12 | The span inline is not moved so it becomes a child of the h1 element, which is inconsistent and does not correspond with current browser behaviour any more.
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_2705873-2.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | Virtual Library
9 |
10 |
11 | Moved to example.org.
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/input/in_433021.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #433021 ] Identify attribute whose value is bad
4 |
5 |
6 | text
7 |
8 |
9 | "valign" attr value can't be "center"
10 | |
11 | "valign" attr value can't be "fuzzle"
12 | |
13 | "align"/"valign" attr values can't be "fuzzle"
14 | |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/input/in_1286278.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | 1286278
6 |
7 |
8 |
9 |
10 | hello
11 |
12 | hello
13 |
14 |
15 | hello
16 |
17 |
18 |
19 | hello
20 |
21 |
22 |
23 |
24 |
25 | hello
26 |
27 | hello
28 |
29 | hello
30 |
31 | hello
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/tests/input/in_427838.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 | [ #427838 ] Name Anchor thrown away
7 |
8 |
9 | A fragment of html created by Frontpage.....
10 | Clipboard
12 |
13 | lots more stuff deleted....
14 |
15 |
16 | some text
17 | some text
18 |
19 |
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *~
2 | Makefile
3 | Makefile.in
4 | Makefile.old
5 |
6 | # Autoconf/Automake/etc
7 | aclocal.m4
8 | autom4te.cache/
9 | configure
10 | config.guess
11 | config.log
12 | config.status
13 | config.sub
14 |
15 | # Autoconf copy stuff
16 | depcomp
17 | install-sh
18 | libtool
19 | ltmain.sh
20 | missing
21 |
22 | # Standard build cruft
23 | *.lo
24 | *.la
25 | *.o
26 | *.obj
27 | *.exe
28 | *.tar.gz
29 |
30 | # Build directories
31 | bin/tidyp
32 | tests/*.log
33 | */tmp
34 | depcomp/
35 | */.deps/
36 | */.libs/
37 | .deps/
38 | tags
39 |
40 |
--------------------------------------------------------------------------------
/tests/accessibility/5-3-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.3.1
5 |
6 |
7 |
8 | Does this layout table make sense when linearized?
9 |
10 |
11 | | Here is some text that is in a column. | Here is some more text that is also in a column. |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_663548.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [663548] Javascript and Tidy - missing code
4 |
18 |
19 |
20 | foo
21 |
22 |
--------------------------------------------------------------------------------
/tests/input/in_516370.xhtml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
[ #516370 ] Invalid ID value?
6 |
7 | Test valid D
8 | Test valid ID
9 | Test valid ID - : should only be used for namespaces
10 | Test invalid ID
11 | Test invalid ID
12 |
13 |
--------------------------------------------------------------------------------
/tests/input/in_532535.html:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 | [ 532535 ] Hang when in code <?xml />
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/input/in_432677.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ #432677 ] Null value changed to "value" for -asxml
4 |
5 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/entities.h:
--------------------------------------------------------------------------------
1 | #ifndef __ENTITIES_H__
2 | #define __ENTITIES_H__
3 |
4 | /* entities.h -- recognize character entities
5 |
6 | (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
7 | See tidyp.h for the copyright notice.
8 |
9 | */
10 |
11 | #include "forward.h"
12 |
13 | /* entity starting with "&" returns zero on error */
14 | /* uint EntityCode( ctmbstr name, uint versions ); */
15 | ctmbstr TY_(EntityName)( uint charCode, uint versions );
16 | Bool TY_(EntityInfo)( ctmbstr name, Bool isXml, uint* code, uint* versions );
17 |
18 | #endif /* __ENTITIES_H__ */
19 |
--------------------------------------------------------------------------------
/tests/input/in_680664.xhtml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | [ 680664 ] Malformed comment generates bad (X)HTML
7 |
8 |
9 |
10 |
11 |
12 | This is a test of some pre stuff.
13 | See what happens to this comment
2 |
4 |
5 |
6 | [ #427812 ] Reprocessing OBJECT removes PARAM
7 |
8 |
9 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/input/in_434100.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | [ #434100 ] Error actually reported as a warning
13 |
14 |
--------------------------------------------------------------------------------
/tests/testaccess.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | #
4 | # testaccess.sh - execute all testcases for regression testing
5 | #
6 | # (c) 2005 (W3C) MIT, ERCIM, Keio University
7 | # See tidy.c for the copyright notice.
8 | #
9 | #
10 | #
11 | # CVS Info:
12 | #
13 | # $Author: arnaud02 $
14 | # $Date: 2005/03/23 12:57:19 $
15 | # $Revision: 1.1 $
16 | #
17 | # set -x
18 |
19 | VERSION='$Id'
20 |
21 | cat accesscases.txt | sed 1d | \
22 | {
23 | while read bugNo expected
24 | do
25 | ./testaccessone.sh $bugNo $expected "$@" | tee -a testaccess.log
26 | done
27 | }
28 |
--------------------------------------------------------------------------------
/tests/accessibility/5-6-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.6.1
5 |
6 |
7 |
8 |
9 | These table headers require abbreviations
10 |
11 | | Age Of All Recent Residents Of The GTA | Income Level Specified In English Pounds |
12 | | 19 | 7000 |
13 | | 29 | 19000 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/input/in_441740.xhtml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | Sample XHTML 1.1 document with Ruby markup
8 |
9 |
10 |
11 |
12 |
13 | 10
14 | 31
15 | 2002
16 |
17 |
22 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/tests/input/in_1002509.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | multiple frameset
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/tests/accessibility/5-4-1-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.4.1
5 |
6 |
7 |
8 | This layout table is using TH for formatting.
9 |
10 |
11 | | Here is some text. | More text is this. |
12 |
13 |
14 | | Here is some text that is in a column. | Here is some more text that is also in a column. |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/accessibility/5-6-1-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.6.1
5 |
6 |
7 |
8 |
9 | These table headers have invalid abbreviations (NULL)
10 |
11 | | Age Of All Recent Residents Of The GTA | Income Level Specified In English Pounds |
12 | | 19 | 7000 |
13 | | 29 | 19000 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/input/in_427841.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test input for bug #427841
4 |
5 |
6 | Tidy crashes on badly formed HTML
7 | involving nested lists.
8 |
9 |
17 |
18 |
19 | - Merge adjacent lists
20 |
21 |
22 |
23 |
24 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/tests/accessibility/5-6-1-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.6.1
5 |
6 |
7 |
8 |
9 | These table headers have invalid abbreviations (spaces)
10 |
11 | | Age Of All Recent Residents Of The GTA | Income Level Specified In English Pounds |
12 | | 19 | 7000 |
13 | | 29 | 19000 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/input/in_1207443.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
15 |
16 |
17 | - item 1
18 |
- item 2
19 |
20 |
21 |
22 | - item 1
23 |
- item 2
24 |
25 |
26 |
27 | - item 1
28 |
- item 2
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/win32tc.h:
--------------------------------------------------------------------------------
1 | #ifndef __WIN32TC_H__
2 | #define __WIN32TC_H__
3 | #ifdef TIDY_WIN32_MLANG_SUPPORT
4 |
5 | /* win32tc.h -- Interface to Win32 transcoding routines
6 |
7 | (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
8 | See tidyp.h for the copyright notice.
9 |
10 | */
11 |
12 | uint TY_(Win32MLangGetCPFromName)(TidyAllocator *allocator,ctmbstr encoding);
13 | Bool TY_(Win32MLangInitInputTranscoder)(StreamIn * in, uint wincp);
14 | void TY_(Win32MLangUninitInputTranscoder)(StreamIn * in);
15 | int TY_(Win32MLangGetChar)(byte firstByte, StreamIn * in, uint * bytesRead);
16 |
17 | #endif /* TIDY_WIN32_MLANG_SUPPORT */
18 | #endif /* __WIN32TC_H__ */
19 |
--------------------------------------------------------------------------------
/tests/accessibility/5-1-2-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.1.2
5 |
6 |
7 |
8 |
9 | This data table is missing one row header
10 |
11 |
12 | | age | 10 | 15 | 20 |
13 |
14 |
15 | | height | 1.3 m | 1.8 m | 2.1 m |
16 |
17 |
18 | | weight | 50 kg | 75 kg. | 100 kg. |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/tests/input/in_1241723.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1241723
5 |
6 |
7 | hi
8 | hi
9 | hi
10 | hi
11 | hi
12 | hi
13 | hi
14 | hi
15 | hi
16 | hi
17 | hi
18 | hi
19 | hi
20 | hi
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/input/in_586555.html:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | [ 586555 ] Misplaced backslash caused by newline
7 |
8 |
9 | [ 586555 ] Misplaced backslash caused by newline
10 |
11 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/accessibility/5-1-2-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.1.2
5 |
6 |
7 |
8 |
9 | This data table is missing row/column headers
10 |
11 |
12 | | age | height | weight |
13 |
14 |
15 | | 10 | 1.3 m | 50 kg. |
16 |
17 |
18 | | 15 | 1.8 m | 75 kg. |
19 |
20 |
21 | | 20 | 2.1 m | 100 kg. |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/accessibility/5-1-2-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | aert1.0/5.1.2
5 |
6 |
7 |
8 |
9 | This data table is missing one column headers
10 |
11 |
12 | | age | height | weight |
13 |
14 |
15 | | 10 | 1.3 m | 50 kg. |
16 |
17 |
18 | | 15 | 1.8 m | 75 kg. |
19 |
20 |
21 | | 20 | 2.1 m | 100 kg. |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/input/in_435909.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [ #435909 ] <noscript></noscript> in <head></head>
5 |
13 |
14 |
22 |
23 |
24 | Test
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/output/out_540571.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | #540571 Inconsistent behaviour with span inline element
6 |
7 |
8 |
9 |
10 | Hello World
11 |
12 |
13 | The font inline is moved so it becomes a child of the h1 element.
14 |
15 |
16 | Hello World
17 |
18 |
19 | The span inline is not moved so it becomes a child of the h1 element, which is inconsistent and does not correspond with current browser behaviour any more.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/input/in_647900.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | [ 647900 ] tables are incorrectly merged
4 |
5 |
6 |
10 |
11 | A paragraph
12 |
13 |
14 |
15 | | Foo
16 | |
17 | |
18 |
21 | |
22 |
23 | Another paragraph
24 |
25 |