/*
htmLawed_TESTCASE.txt, 27 August 2013
htmLawed 1.1.17, 11 March 2014
Copyright Santosh Patnaik
Dual licensed with LGPL 3 and GPL 2+
A PHP Labware internal utility - http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed
*/
This file has UTF-8-encoded text with both correct and incorrect/malformed HTML/XHTML code snippets to test htmLawed (test cases/samples). The entire text may also be used as a unit.
************************************************
when viewing this file in a web browser, set the
character encoding to Unicode/UTF-8
************************************************
--------------------- start --------------------
Try different $config and $spec values. Some text even when filtered in will not be displayed in a rendered web-page
Attributes
Xml:lang:, , Standard, predefined value, or empty attribute: , , Required: , Quote & space variation:a, a, a Invalid:a Duplicated:a Deprecated:a, Casing: Custom: Data-*:a Admin-restricted?:
Attribute values
Duplicate ID value:, ,
(try 'my_' for prefix) Double-quotes in value:, ,
(try filter for CSS expression) CSS expression: Other: ,
(try 'maxlen', 'maxval', etc., for 'input' in '$spec')
Blockquotes
abc
abc
def
abc
def
abc
def
ghi
abc
def
ghi
QQQ
x
x
QQQ
x
QQQ
x
x
QQQ
x
(try with blockquote parent)
CDATA sections
Special characters inside: ]]>, 3.5, & 4 > 4 ]]> Normal: , CDATA follows: Malformed: , < ![CDATA check ]]>, , < ![CDATA check ] ]> Invalid:>CDATA in tag content,
text not allowed
Complex-1: deprecated elements
The PHP software script used for this web-page webpage is htmLawedTest.php, from PHP Labware.