From 1a3fda1c335f280a7305bf336b7210ba4f2fcb12 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Tue, 5 Aug 2014 13:11:09 +0200 Subject: [PATCH] add a html4 removed tags test folder --- test/html5/html4/acronym4.html | 14 ++++ test/html5/html4/applet4.html | 17 +++++ test/html5/html4/basefont4.html | 25 +++++++ test/html5/html4/big4.html | 12 ++++ test/html5/html4/center4.html | 15 +++++ test/html5/html4/cleanup.bat | 23 +++++++ test/html5/html4/dir4.html | 17 +++++ test/html5/html4/font4.html | 17 +++++ test/html5/html4/frame_a.htm | 6 ++ test/html5/html4/frame_b.htm | 5 ++ test/html5/html4/frame_c.htm | 5 ++ test/html5/html4/frameset4.html | 16 +++++ test/html5/html4/strike4.html | 13 ++++ test/html5/html4/testhtml4.cmd | 114 ++++++++++++++++++++++++++++++++ test/html5/html4/tt4.html | 16 +++++ 15 files changed, 315 insertions(+) create mode 100644 test/html5/html4/acronym4.html create mode 100644 test/html5/html4/applet4.html create mode 100644 test/html5/html4/basefont4.html create mode 100644 test/html5/html4/big4.html create mode 100644 test/html5/html4/center4.html create mode 100644 test/html5/html4/cleanup.bat create mode 100644 test/html5/html4/dir4.html create mode 100644 test/html5/html4/font4.html create mode 100644 test/html5/html4/frame_a.htm create mode 100644 test/html5/html4/frame_b.htm create mode 100644 test/html5/html4/frame_c.htm create mode 100644 test/html5/html4/frameset4.html create mode 100644 test/html5/html4/strike4.html create mode 100644 test/html5/html4/testhtml4.cmd create mode 100644 test/html5/html4/tt4.html diff --git a/test/html5/html4/acronym4.html b/test/html5/html4/acronym4.html new file mode 100644 index 0000000..cdc891d --- /dev/null +++ b/test/html5/html4/acronym4.html @@ -0,0 +1,14 @@ + + + + + acronym + + + +

An acronym for the World Wide Web is + WWW +

+ + + diff --git a/test/html5/html4/applet4.html b/test/html5/html4/applet4.html new file mode 100644 index 0000000..498bcad --- /dev/null +++ b/test/html5/html4/applet4.html @@ -0,0 +1,17 @@ + + + + + applet + + + +

An applet tag not supported in HTML5

+ + +Java applet that draws animated bubbles. + + + + + diff --git a/test/html5/html4/basefont4.html b/test/html5/html4/basefont4.html new file mode 100644 index 0000000..b68a33d --- /dev/null +++ b/test/html5/html4/basefont4.html @@ -0,0 +1,25 @@ + + + + +HTML Test + + + + + + +

This line of text is before the basefont tag.

+ +

This is the first line of text after the basefont tag.

+

This is the second line of text after the basefont tag.

+ +

Note: The basefont tag is not supported by most browsers. This line uses an alternative CSS +which could be associated to the body to effect the whole document. +

+ + + \ No newline at end of file diff --git a/test/html5/html4/big4.html b/test/html5/html4/big4.html new file mode 100644 index 0000000..3ab3941 --- /dev/null +++ b/test/html5/html4/big4.html @@ -0,0 +1,12 @@ + + + + + big tag + + + +

Normal text Bigger text

+ + + diff --git a/test/html5/html4/center4.html b/test/html5/html4/center4.html new file mode 100644 index 0000000..9195d89 --- /dev/null +++ b/test/html5/html4/center4.html @@ -0,0 +1,15 @@ + + + + + center tag + + + +
+

This text will be center-aligned.

+
+

Nomal left text

+ + + diff --git a/test/html5/html4/cleanup.bat b/test/html5/html4/cleanup.bat new file mode 100644 index 0000000..7d50bdc --- /dev/null +++ b/test/html5/html4/cleanup.bat @@ -0,0 +1,23 @@ +@setlocal +@set TMPCNT1=0 +@if EXIST tempout ( +@echo Cleaning and removing tempout folder... +@cd tempout +@del *.html >nul +@del *.txt >nul +@cd .. +@rd tempout +@set /A TMPCNT1+=1 +) + +@if EXIST temphtml4.cfg ( +@echo Removing temphtml4.cfg file +@del temphtml4.cfg >nul +@set /A TMPCNT1+=1 +) + +@if "%TMPCNT1%x" == "0x" ( +@echo Appears nothing to clean up! +) + + diff --git a/test/html5/html4/dir4.html b/test/html5/html4/dir4.html new file mode 100644 index 0000000..4fb802f --- /dev/null +++ b/test/html5/html4/dir4.html @@ -0,0 +1,17 @@ + + + + + dir tag + + + +

dir tag for a list...

+ +
  • html
  • +
  • xhtml
  • +
  • css
  • +
    + + + diff --git a/test/html5/html4/font4.html b/test/html5/html4/font4.html new file mode 100644 index 0000000..135e4ea --- /dev/null +++ b/test/html5/html4/font4.html @@ -0,0 +1,17 @@ + + +font tag + + + + +

    Some text, size=3, color=red!

    + +

    Some text, size=2, color=blue!

    + +

    Some text, face=verdana, color=green!

    + +

    Note: The font element is not supported in HTML5. Use CSS instead.

    + + + diff --git a/test/html5/html4/frame_a.htm b/test/html5/html4/frame_a.htm new file mode 100644 index 0000000..5a55ae7 --- /dev/null +++ b/test/html5/html4/frame_a.htm @@ -0,0 +1,6 @@ + + +

    Frame A

    +

    Note: The frameset, frame, and noframes elements are not supported in HTML5.

    + + diff --git a/test/html5/html4/frame_b.htm b/test/html5/html4/frame_b.htm new file mode 100644 index 0000000..3c6ad17 --- /dev/null +++ b/test/html5/html4/frame_b.htm @@ -0,0 +1,5 @@ + + +

    Frame B

    + + diff --git a/test/html5/html4/frame_c.htm b/test/html5/html4/frame_c.htm new file mode 100644 index 0000000..2decbb5 --- /dev/null +++ b/test/html5/html4/frame_c.htm @@ -0,0 +1,5 @@ + + +

    Frame C

    + + diff --git a/test/html5/html4/frameset4.html b/test/html5/html4/frameset4.html new file mode 100644 index 0000000..95da75a --- /dev/null +++ b/test/html5/html4/frameset4.html @@ -0,0 +1,16 @@ + + + + + frameset, frame, noframes tags + + + + + + + + +frameset, frame not supported + + diff --git a/test/html5/html4/strike4.html b/test/html5/html4/strike4.html new file mode 100644 index 0000000..9b5f318 --- /dev/null +++ b/test/html5/html4/strike4.html @@ -0,0 +1,13 @@ + + + +strike tag + + + +

    Version 2.0 is not yet available! now available!

    + +

    The strike element is not supported in HTML5. Use CSS instead.

    + + + diff --git a/test/html5/html4/testhtml4.cmd b/test/html5/html4/testhtml4.cmd new file mode 100644 index 0000000..bc9499f --- /dev/null +++ b/test/html5/html4/testhtml4.cmd @@ -0,0 +1,114 @@ +@setlocal + +@set TMPEXE=..\..\..\build\cmake\Release\tidy5.exe +@if NOT EXIST %TMPEXE% goto NOEXE +@set TMPINP=temphtml4.cfg +@set TMPDIR=tempout + +@%TMPEXE% -h > nul +@if ERRORLEVEL 1 goto NOEXE + +@if EXIST %TMPDIR%\nul goto GOTOUT +@echo Will create the folder %TMPDIR% for output... +@pause +@md %TMPDIR% +@if ERRORLEVEL 1 goto NOOUT +@if NOT EXIST %TMPDIR%\nul goto NODIR +:GOTOUT + +@REM This option would be nice, but at present it is FARRRR TOOOOO agressive, +@REM dropping , , etc... because they are marked CM_OPT +@REM which causes WARNINGS when tidy is run on the tidied file!!! +@REM echo omit-optional-tags: yes >> %TMPINP% + +@if EXIST %TMPINP% goto GOTINP +@echo Creating a CONFIG file %TMPINP% +@pause +@echo wrap: 99 > %TMPINP% +@echo tidy-mark: no >> %TMPINP% +@echo indent: yes >> %TMPINP% +@echo break-before-br: yes >> %TMPINP% +@echo indent-attributes: yes >> %TMPINP% +@echo vertical-space: yes >> %TMPINP% +@echo indent-spaces: 1 >> %TMPINP% +@echo indent-cdata: no >> %TMPINP% +@echo wrap-asp: no >> %TMPINP% +@echo wrap-attributes: no >> %TMPINP% +@echo wrap-jste: no >> %TMPINP% +@echo wrap-php: no >> %TMPINP% +@echo wrap-script-literals: no >> %TMPINP% +@echo wrap-sections: no >> %TMPINP% +@echo tab-size: 4 >> %TMPINP% +@echo show-info: no >> %TMPINP% +@echo doctype: html5 >> %TMPINP% +@if NOT EXIST %TMPINP% goto NOINP +:GOTINP +@set TMPCNT1=0 +@set TMPCNT2=0 +@set TMPCNT3=0 + +@for %%i in (*4.html) do @(call :CNTIT %%i) +@echo. +@echo Will process %TMPCNT1% files found, using the config file %TMPINP%, which contains a directive doctype: html5, +@echo forcing tidy5 to assume they are HTML5 files. All output is to %TMPDIR% folder... +@echo. +@echo *** ALL *** should exit with WARNINGS and/or ERRORS, since they contain tags no longer used in HTML5 +@echo. +@echo *** CONTINUE? *** Only Ctlr+C aborts... all other keys continue... +@echo. +@pause +@echo. + +@for %%i in (*4.html) do @(call :DOONE %%i) + +@echo. +@echo Done %TMPCNT2% files. See message and tidied output in the %TMPDIR% folder... +@echo. +@if "%TMPCNT3%x" == "0x" ( +@echo ALL exited With WARNINGS and/or ERRORS! This is a *** SUCCESS *** +) ELSE ( +@echo However have %TMPCNT3% with NO WARNINGS or ERRORS! This is a *** FAILURE *** +) +@echo. +@goto END + +:CNTIT +@if "%~1x" == "x" goto :EOF +@set /A TMPCNT1+=1 +@goto :EOF + +:DOONE +@if "%~1x" == "x" goto :EOF +@set /A TMPCNT2+=1 +@echo %TMPCNT2% of %TMPCNT1%: %1 +@set TMPOUT=%TMPDIR%\%~nx1 +@set TMPMSG=%TMPOUT%.txt + +@if EXIST %TMPOUT% @del %TMPOUT% > nul +@if EXIST %TMPMSG% @del %TMPMSG% > nul + +@%TMPEXE% -f %TMPMSG% -config %TMPINP% -o %TMPOUT% %1 +@if ERRORLEVEL 1 goto :EOF +:FAILED +@echo The test of %1 FAILED! +@set /A TMPCNT3+=1 +@pause +@goto :EOF + +:NODIR +:NOOUT +@echo Error: Unable to create %TMPDIR%! +@goto END + + +:NOEXE +@echo Unable to find/run exe %TMPEXE%! *** FIX ME *** +@echo Set the name of the 'tidy' executable to use... +@goto END + +:NOINP +@echo Error: Unable to create config file %TMPINP%! +@goto END + + +:END diff --git a/test/html5/html4/tt4.html b/test/html5/html4/tt4.html new file mode 100644 index 0000000..f5b7f70 --- /dev/null +++ b/test/html5/html4/tt4.html @@ -0,0 +1,16 @@ + + + +tt tag + + + +

    This text is normal.

    +

    This text is teletype text.

    + +

    Note: The tt element is not supported in HTML5.

    + +

    Similar effect using css

    + + +