diff --git a/test/html5/html4/README.html4.txt b/test/html5/html4/README.html4.txt index a2a5c12..ece1760 100644 --- a/test/html5/html4/README.html4.txt +++ b/test/html5/html4/README.html4.txt @@ -1,6 +1,9 @@ README.html4.txt - 20140805 -This folder contains about dozen HTML files, each using a tag or tags REMOVED from HTML5 +## Tests 1 + +This folder contains about dozen HTML files, each using a tag or tags REMOVED from HTML5, +all named *4.html Running these files through standard 2009 tidy should mostly produce no errors or warnings. @@ -21,6 +24,33 @@ and a FAILURE if a clean run. There is also a cleanup.bat to delete the products produced by this test. +## Tests 2 + +This folder contains about 14 HTML files, each using a tag or tags REMOVED from HTML5, +all named *5.html + +These were use to test an develop the CheckHTML5(doc,node) service. And there are +a set of batch file to run these tests, named test*.bat, and some 'special' +batch file like - + +setexe.bat - This is called by all others to set the location of the EXE to use. This + file will need to be ADJUST to point to where the Tidy EXE that you want to use. + +testone.bat - After setting the input file, each test????.bat calls this to conduct + four (4) tests - + Using configure DOCTYPE AND CLEAN + Using configure DOCTYPE but NO CLEAN + Using configure CLEAN but NO DOCTYPE + Using configure NO CLEAN and NO DOCTYPE + +All the output is redirected to tempinfo.html + +The set of test batch files is - +testacro.bat testbig.bat testbody.bat testcent.bat testcent2.bat testdir.bat testfont.bat +testi2.bat testtt.bat + +THe name generally indicates the tag or attribute being tested... + Enjoy. # eof diff --git a/test/html5/html4/acronym5.html b/test/html5/html4/acronym5.html new file mode 100644 index 0000000..aa0eccf --- /dev/null +++ b/test/html5/html4/acronym5.html @@ -0,0 +1,23 @@ + + +
+ +An acronym for the World Wide Web is + WWW +
+This file contains <acronym title="World Widw Web">WWW</acronym> +
+The 'experimental' Nu Markup Checker flags this as an ERROR with the string + "Error: The acronym element is obsolete. Use the abbr element instead." +
+ + + diff --git a/test/html5/html4/align5.html b/test/html5/html4/align5.html new file mode 100644 index 0000000..d304b5b --- /dev/null +++ b/test/html5/html4/align5.html @@ -0,0 +1,61 @@ + + + + +This file contains an element <h1 align="center">, but it also applies + to any element, like <p..., <table, etc... +
+The 'experimental' Nu Markup Checker flags this as an HTML5 ERROR with the string + "Error: The align attribute on the h1 element is obsolete. Use CSS instead." +
+ +If 'clean' at present tidy 'silently' replaces this with CSS in TY_(CleanDocument)(doc), + in Style2Rule( TidyDocImpl* doc, Node *node), using TY_(AttrGetById)(node, TidyAttr_STYLE); +
+ +Q: Should this behaviour be modified? +
+A: There are various possibilities
+
An applet tag is not supported in HTML5
+ + + + + diff --git a/test/html5/html4/basefont5.html b/test/html5/html4/basefont5.html new file mode 100644 index 0000000..bc8e8f1 --- /dev/null +++ b/test/html5/html4/basefont5.html @@ -0,0 +1,23 @@ + + + +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. +
+ + + diff --git a/test/html5/html4/big5.html b/test/html5/html4/big5.html new file mode 100644 index 0000000..e9a4c37 --- /dev/null +++ b/test/html5/html4/big5.html @@ -0,0 +1,16 @@ + + + + +Normal text, then some <big> bigger text
+Similar text, using span bigger text
+ + diff --git a/test/html5/html4/blink5.html b/test/html5/html4/blink5.html new file mode 100644 index 0000000..fbc0fc0 --- /dev/null +++ b/test/html5/html4/blink5.html @@ -0,0 +1,16 @@ + + + + +Normal text, then some
+Similar text, using span blink
+ + diff --git a/test/html5/html4/bodyatts5.html b/test/html5/html4/bodyatts5.html new file mode 100644 index 0000000..0cd8116 --- /dev/null +++ b/test/html5/html4/bodyatts5.html @@ -0,0 +1,58 @@ + + + + +This file contains a body element <body background="images/non-existing.jpg"> +
+The 'experimental' Markup Validation Service flags this as an HTML5 ERROR with the string + "The background attribute on the body element is obsolete. Use CSS instead." +
+If 'clean' at present tidy 'silently' replaces this with CSS in CleanBodyAttrs( TidyDocImpl* doc, Node* body ), + called from CreateStyleElement( doc ), in void TY_(CleanDocument)( TidyDocImpl* doc ) +
+Q: Should this behaviour be modified? +
+A: There are various possibilities
+
Table centered by <center> |
This file contains <center;> ... </center;> +
+The 'experimental' Nu Markup Checker flags this as an HTML5 ERROR with the string + "Error: The center element is obsolete. Use CSS instead." +
+ +If 'clean' at present tidy 'silently' replaces this with a <div class="c1">, and + add the CSS in TY_(CleanDocument)(doc), ... +
+ +Q: Should this behaviour be modified? +
+A: There are various possibilities
+
Also perhaps Tidy5 needs another configuration parameter as suggested by the validator.w3.org, + namely "HTML4-specific tokenization errors are enabled." That is being + able to clearly inform tidy that is the document is to be taken as HTML5, then certain + tags are to be an error. +
+ + + \ No newline at end of file diff --git a/test/html5/html4/center5.html b/test/html5/html4/center5.html new file mode 100644 index 0000000..aa87b7d --- /dev/null +++ b/test/html5/html4/center5.html @@ -0,0 +1,22 @@ + + + + +This text will be center-aligned.
+Nomal left text
+ +Center aligned by CSS
+ + + diff --git a/test/html5/html4/dir5.html b/test/html5/html4/dir5.html new file mode 100644 index 0000000..437e1cb --- /dev/null +++ b/test/html5/html4/dir5.html @@ -0,0 +1,18 @@ + + + + +dir tag for a list...
+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.
+ + +