This commit is contained in:
rickg%netscape.com 1998-08-23 20:21:58 +00:00
Родитель dad55125bf
Коммит 941595cc23
30 изменённых файлов: 7326 добавлений и 70 удалений

Просмотреть файл

@ -943,9 +943,8 @@ nsresult CNavDTD::HandleEntityToken(CToken* aToken) {
CEntityToken* et = (CEntityToken*)(aToken);
nsresult result=NS_OK;
eHTMLTags tokenTagType=(eHTMLTags)et->GetTypeID();
if(PR_FALSE==CanOmit(GetTopNode(),tokenTagType)) {
if(PR_FALSE==CanOmit(GetTopNode(),eHTMLTag_entity)) {
nsCParserNode aNode((CHTMLToken*)aToken,mLineNumber);
result=AddLeaf(aNode);
}
@ -3175,11 +3174,11 @@ CNavDTD::ConsumeEntity(PRUnichar aChar,CScanner& aScanner,CToken*& aToken) {
if(NS_OK==result) {
if(nsString::IsAlpha(ch)) { //handle common enity references &xxx; or &#000.
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_unknown,gEmpty);
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_entity,gEmpty);
result = aToken->Consume(ch,aScanner); //tell new token to finish consuming text...
}
else if(kHashsign==ch) {
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_unknown,gEmpty);
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_entity,gEmpty);
result=aToken->Consume(0,aScanner);
}
else {
@ -3225,7 +3224,7 @@ CNavDTD::ConsumeWhitespace(PRUnichar aChar,
* @return new token or null
*/
nsresult CNavDTD::ConsumeComment(PRUnichar aChar,CScanner& aScanner,CToken*& aToken){
aToken = gTokenRecycler.CreateTokenOfType(eToken_comment,eHTMLTag_unknown,gEmpty);
aToken = gTokenRecycler.CreateTokenOfType(eToken_comment,eHTMLTag_comment,gEmpty);
nsresult result=NS_OK;
if(aToken) {
result=aToken->Consume(aChar,aScanner);

Просмотреть файл

@ -41,7 +41,7 @@ static char gSkippedContentTags[] = {
* @param
* @return
*/
ostream& operator<<(ostream& os,nsAutoString& aString){
ostream& operator<<(ostream& os, nsAutoString& aString) {
const PRUnichar* uc=aString.GetUnicode();
int len=aString.Length();
for(int i=0;i<len;i++)
@ -49,6 +49,19 @@ ostream& operator<<(ostream& os,nsAutoString& aString){
return os;
}
/**
*
* @update gess8/8/98
* @param
* @return
*/
ostream& operator<<(ostream& os,const nsString& aString) {
const PRUnichar* uc=aString.GetUnicode();
int len=aString.Length();
for(int i=0;i<len;i++)
os<<(char)uc[i];
return os;
}
class nsLoggingSink : public nsILoggingSink {
public:
@ -420,12 +433,16 @@ nsresult
nsLoggingSink::LeafNode(const nsIParserNode& aNode)
{
WriteTabs(*mOutput,1+mLevel);
nsHTMLTag nodeType = nsHTMLTag(aNode.GetNodeType());
nsHTMLTag nodeType = nsHTMLTag(aNode.GetNodeType());
if ((nodeType >= eHTMLTag_unknown) &&
(nodeType <= nsHTMLTag(NS_HTML_TAG_MAX))) {
const char* tag = NS_EnumToTag(nodeType);
(*mOutput) << "<leaf tag=\"" << tag << "\"";
if(tag)
(*mOutput) << "<leaf tag=\"" << tag << "\"";
else (*mOutput) << "<leaf tag=\"???\"";
if (WillWriteAttributes(aNode)) {
(*mOutput) << ">" << endl;
WriteAttributes(aNode);
@ -439,29 +456,29 @@ nsLoggingSink::LeafNode(const nsIParserNode& aNode)
PRInt32 pos;
nsAutoString tmp;
switch (nodeType) {
case eHTMLTag_whitespace:
case eHTMLTag_text:
QuoteText(aNode.GetText(), tmp);
(*mOutput) << "<text value=\"" << tmp << "\"/>" << endl;
break;
case eHTMLTag_whitespace:
case eHTMLTag_text:
QuoteText(aNode.GetText(), tmp);
(*mOutput) << "<text value=\"" << tmp << "\"/>" << endl;
break;
case eHTMLTag_newline:
(*mOutput) << "<newline/>" << endl;
break;
case eHTMLTag_newline:
(*mOutput) << "<newline/>" << endl;
break;
case eHTMLTag_entity:
tmp.Append(aNode.GetText());
tmp.Cut(0, 1);
pos = tmp.Length() - 1;
if (pos >= 0) {
tmp.Cut(pos, 1);
}
(*mOutput) << "<entity value=\"" << tmp << "\"/>" << endl;
break;
case eHTMLTag_entity:
tmp.Append(aNode.GetText());
tmp.Cut(0, 1);
pos = tmp.Length() - 1;
if (pos >= 0) {
tmp.Cut(pos, 1);
}
(*mOutput) << "<entity value=\"" << tmp << "\"/>" << endl;
break;
default:
NS_NOTREACHED("unsupported leaf node type");
}
default:
NS_NOTREACHED("unsupported leaf node type");
}//switch
}
return NS_OK;
}

Просмотреть файл

@ -205,7 +205,7 @@ PRInt32 nsCParserNode::GetNodeType(void) const{
/**
* Gets the token type, which corresponds to a value from
* eHTMLTags_xxx.
* eHTMLTokens_xxx.
*
* @update gess 3/25/98
* @param

Просмотреть файл

@ -0,0 +1,10 @@
s:/mozilla/dist/win32_d.obj/bin/res/samples/test0.html s:/mozilla/htmlparser/tests/logparse/test0.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test1.html s:/mozilla/htmlparser/tests/logparse/test1.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test2.html s:/mozilla/htmlparser/tests/logparse/test2.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test3.html s:/mozilla/htmlparser/tests/logparse/test3.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test4.html s:/mozilla/htmlparser/tests/logparse/test4.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test5.html s:/mozilla/htmlparser/tests/logparse/test5.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test6.html s:/mozilla/htmlparser/tests/logparse/test6.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test7.html s:/mozilla/htmlparser/tests/logparse/test7.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test8.html s:/mozilla/htmlparser/tests/logparse/test8.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test9.html s:/mozilla/htmlparser/tests/logparse/test9.bl

Просмотреть файл

@ -118,27 +118,45 @@ PRBool CompareFiles(const char* aFilename1, const char* aFilename2) {
//----------------------------------------------------------------------
void ComputeTempFilename(const char* anIndexFilename, char* aTempFilename) {
if(anIndexFilename) {
strcpy(aTempFilename,anIndexFilename);
char* pos=strrchr(aTempFilename,'\\');
if(!pos)
pos=strrchr(aTempFilename,'/');
if(pos) {
(*pos)=0;
strcat(aTempFilename,"/temp.blx");
return;
}
}
//fall back to our last resort...
strcpy(aTempFilename,"c:/windows/temp/temp.blx");
}
//----------------------------------------------------------------------
static const char* kAppName = "logparse ";
static const char* kOption1 = "Compare baseline file-set";
static const char* kOption2 = "Generate baseline ";
static const char* kResultMsg[2] = {" does not match baseline."," matches baseline."};
static const char* kResultMsg[2] = {" failed!"," ok."};
void ValidateBaselineFiles(const char* anIndexFilename) {
fstream theIndexFile(anIndexFilename,ios::in | ios::nocreate);
char theFilename[500];
char theBaselineFilename[500];
char theTempFilename[500];
PRBool done=PR_FALSE;
ComputeTempFilename(anIndexFilename,theTempFilename);
while(!done) {
theIndexFile >> theFilename;
theIndexFile >> theBaselineFilename;
if(theFilename[0] && theBaselineFilename[0]) {
char theTempFile[500];
sprintf(theTempFile,theBaselineFilename);
strcat(theTempFile,"x");
if(0==GenerateBaselineFile(theFilename,theTempFile)) {
PRBool matches=CompareFiles(theTempFile,theBaselineFilename);
if(0==GenerateBaselineFile(theFilename,theTempFilename)) {
PRBool matches=CompareFiles(theTempFilename,theBaselineFilename);
cout << theFilename << kResultMsg[matches] << endl;
}
}

Просмотреть файл

@ -0,0 +1,458 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 0"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
a#id.foo:visited:first-line { color: red; }
a#id.foo:first-line { color: red; }
a#id.foo:visited { color: red; }
a#id:first-line { color: red; }
a#id:visited { color: red; }
a:first-line { color: red; }
a:visited { color: red; }
a:visited:first-line { color: red; }
a:visited:visited { color: red; }
a:first-line:visited { color: red; }
:active { color: blue; }
:first-letter { color: green; }
" value="</style>"/>
<content value="&#10; a#id.foo:visited:first-line { color: red; }&#10; a#id.foo:first-line { color: red; }&#10; a#id.foo:visited { color: red; }&#10; a#id:first-line { color: red; }&#10; a#id:visited { color: red; }&#10; a:first-line { color: red; }&#10; a:visited { color: red; }&#10; a:visited:first-line { color: red; }&#10; a:visited:visited { color: red; }&#10; a:first-line:visited { color: red; }&#10; :active { color: blue; }&#10; :first-letter { color: green; }&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 0: Basic HTML Text Styles"/>
<close container="H1">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="H2">
<text value="Formatted Text"/>
<close container="H2">
<newline/>
<open container="P">
<text value="This is a basic paragraph with "/>
<open container="B">
<text value="bold"/>
<close container="B">
<text value=", "/>
<open container="I">
<text value="italic"/>
<close container="I">
<text value=" "/>
<text value="and "/>
<open container="I">
<text value="bold-italic "/>
<newline/>
<text value=" "/>
<close container="I">
<text value=" "/>
<text value="text. It also includes "/>
<open container="FONT">
<attr key="color" value="#FF0000"/>
</open>
<text value="red"/>
<close container="FONT">
<text value=", "/>
<open container="FONT">
<attr key="color" value="#00FF00"/>
</open>
<text value="green"/>
<close container="FONT">
<text value=" "/>
<newline/>
<text value=" "/>
<text value="and "/>
<open container="FONT">
<attr key="color" value="#0000FF"/>
</open>
<text value="blue"/>
<close container="FONT">
<text value=" "/>
<text value="text. It has "/>
<open container="S">
<text value="strikethru"/>
<close container="S">
<text value=" "/>
<text value="and "/>
<open container="U">
<text value="underline"/>
<close container="U">
<text value=". "/>
<newline/>
<text value=" "/>
<open container="U">
<text value=" "/>
<close container="U">
<close container="P">
<newline/>
<open container="P">
<text value="This is a paragraph with font variations: "/>
<open container="B">
<open container="FONT">
<attr key="face" value="Arial, Helvetica, sans-serif"/>
</open>
<text value="Arial,"/>
<close container="FONT">
<close container="B">
<open container="FONT">
<attr key="face" value="Arial, Helvetica, sans-serif"/>
</open>
<text value=" "/>
<newline/>
<text value=" "/>
<open container="I">
<open container="FONT">
<attr key="face" value="Verdana, Arial, Helvetica, sans-serif"/>
</open>
<text value="Verdana"/>
<close container="FONT">
<text value=","/>
<close container="I">
<text value=" "/>
<open container="FONT">
<attr key="face" value="co"/>
</open>
<text value="COURIER, "/>
<newline/>
<text value=" "/>
<open container="FONT">
<attr key="face" value="Times New Roman, Times, serif"/>
</open>
<text value="Times New Roman."/>
<close container="FONT">
<close container="FONT">
<close container="FONT">
<close container="P">
<newline/>
<open container="P">
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="Font size=7, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="6"/>
</open>
<text value="Font size=6, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="Font "/>
<newline/>
<text value=" "/>
<text value="size=5, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="4"/>
</open>
<text value="Font size=4, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="3"/>
</open>
<text value="Font size=3, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="2"/>
</open>
<text value="Font "/>
<newline/>
<text value=" "/>
<text value="size=2, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="1"/>
</open>
<text value="Font size=1, "/>
<close container="FONT">
<open container="FONT">
<attr key="point-size" value="24"/>
<attr key="font-weight" value="700"/>
</open>
<text value="Font "/>
<newline/>
<text value=" "/>
<text value="point-size=24 font-weight=700"/>
<close container="FONT">
<close container="P">
<newline/>
<open container="P">
<text value="3D Text. 3D Text. 3D Text. 3D Text. 3D Text. "/>
<leaf tag="BR"/>
<newline/>
<close container="P">
<open container="H2">
<leaf tag="BR"/>
<newline/>
<close container="H2">
<newline/>
<open container="H2">
<text value="Listings"/>
<close container="H2">
<newline/>
<open container="H3">
<text value="Bulleted List "/>
<close container="H3">
<newline/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="One"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Two"/>
<newline/>
<text value=" "/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Apples"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Oranges"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Bananas"/>
<close container="LI">
<newline/>
<text value=" "/>
<close container="UL">
<newline/>
<text value=" "/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Three"/>
<close container="LI">
<newline/>
<close container="UL">
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="H3">
<text value="Numbered List "/>
<close container="H3">
<newline/>
<open container="OL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="One"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Two "/>
<newline/>
<text value=" "/>
<open container="OL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Apples"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Oranges"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Bananas"/>
<close container="LI">
<newline/>
<text value=" "/>
<close container="OL">
<newline/>
<text value=" "/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Three"/>
<close container="LI">
<newline/>
<close container="OL">
<newline/>
<open container="H2">
<text value="Justified Text"/>
<close container="H2">
<newline/>
<open container="P">
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<newline/>
<text value=" "/>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<newline/>
<text value=" "/>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<newline/>
<text value=" "/>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<close container="P">
<newline/>
<open container="P">
<attr key="align" value="RIGHT"/>
</open>
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<open container="B">
<text value=" "/>
<close container="B">
<text value="This paragarph "/>
<newline/>
<text value=" "/>
<text value="is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<close container="P">
<newline/>
<open container="P">
<attr key="align" value="CENTER"/>
</open>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value="."/>
<close container="P">
<newline/>
<open container="P">
<close container="P">
<newline/>
<open container="P">
<entity value="bs"/>
<close container="P">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,236 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 1"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
H1{ color: rgb(128,0,128) }
PRE { background-color: rgb(200,200,200) }
B {
background-color: rgb(128, 128, 255);
font-size: large;
}
I {
font-size: larger;
}
B I {
font-size: smaller;
}
LI B {
font-size: .25in;
}
UL LI {
color: green;
list-style: square outside url(resource:/res/gear1.gif); //none;
}
UL UL LI {
color: red;
}
H4 {
color: yelow;
background-image: url(gear1.gif);
background-repeat: repeat;
font-size: 150%;
}
" value="</style>"/>
<content value="&#10;H1{ color: rgb(128,0,128) }&#10;PRE { background-color: rgb(200,200,200) }&#10;B {&#10; background-color: rgb(128, 128, 255);&#10; font-size: large;&#10;}&#10;I {&#10; font-size: larger;&#10;}&#10;B I {&#10; font-size: smaller;&#10;}&#10;LI B {&#10; font-size: .25in;&#10;}&#10;UL LI {&#10; color: green;&#10; list-style: square outside url(resource:/res/gear1.gif);&#9;//none;&#10;}&#10;UL UL LI {&#10; color: red;&#10;}&#10;H4 {&#10; color: yelow;&#10; background-image: url(gear1.gif);&#10; background-repeat: repeat;&#10; font-size: 150%;&#10;}&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 1: CSS HTML Text Styles"/>
<close container="H1">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="P">
<text value="Note -- This document contains the following CSS declarations:"/>
<close container="P">
<newline/>
<open container="PRE">
<text value="H1 { color: rgb(128,0,128) }"/>
<newline/>
<text value="PRE { background-color: rgb(200,200,200); }"/>
<newline/>
<text value="B { background-color: rgb(128, 128, 255); "/>
<newline/>
<text value=" "/>
<text value="font-size: large; } "/>
<newline/>
<text value="I { font-size: larger; } "/>
<newline/>
<text value="B I { font-size: smaller; } "/>
<newline/>
<text value="LI B { font-size: .25in; } "/>
<newline/>
<text value="UL LI { color: green; "/>
<newline/>
<text value=" "/>
<text value="list-style: square outside url(resource:/res/gear1.gif); "/>
<newline/>
<text value=" "/>
<text value="//none; } "/>
<newline/>
<text value="UL UL LI { color: red; } "/>
<newline/>
<text value="H4 { color: yellow;"/>
<newline/>
<text value=" &#9; "/>
<text value="background-image: url(gear1.gif); "/>
<newline/>
<text value=" "/>
<text value="background-repeat: repeat; "/>
<newline/>
<text value=" "/>
<text value="font-size: 150%; } "/>
<newline/>
<close container="PRE">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="P">
<text value="Here is an example of "/>
<open container="B">
<text value="bold"/>
<close container="B">
<text value=", "/>
<open container="I">
<text value="italic"/>
<close container="I">
<text value=" "/>
<text value="and "/>
<open container="B">
<open container="I">
<text value="bold-italic"/>
<close container="I">
<close container="B">
<close container="P">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="P">
<text value="Some links to test pseudo-classes"/>
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://link"/>
</open>
<text value="link"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://visited"/>
</open>
<text value="visited"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://out-of-date"/>
</open>
<text value="outofdate"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://active"/>
</open>
<text value="active"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://hover"/>
</open>
<text value="hover"/>
<close container="A">
<close container="P">
<newline/>
<open container="H2">
<text value="Bulleted List "/>
<close container="H2">
<newline/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="One"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Two"/>
<newline/>
<text value=" "/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Apples"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Oranges"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Bananas"/>
<close container="LI">
<newline/>
<text value=" "/>
<close container="UL">
<newline/>
<text value=" "/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Three "/>
<open container="B">
<text value="Bold Text"/>
<close container="B">
<close container="LI">
<newline/>
<close container="UL">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="H4">
<text value="H3 -- A headline style, with a background image repeated and a font size increase "/>
<newline/>
<text value=" "/>
<text value="by 150%. H3 -- A headline style, with a background image repeated and a font "/>
<newline/>
<text value=" "/>
<text value="size increase by 150%. H3 -- A headline style, with a background image repeated "/>
<newline/>
<text value=" "/>
<text value="and a font size increase by 150%. "/>
<close container="H4">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,107 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 2"/>
<close container="head">
<open container="META">
<leaf tag="META">
<attr key="http-equiv" value="Content-Type"/>
<attr key="content" value="text/html; charset=iso-8859-1"/>
</leaf>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
PRE {
background-image: url(gear1.gif);
background-repeat: repeat;
}
" value="</style>"/>
<content value="&#10;PRE {&#10; &#9; background-image: url(gear1.gif); &#10; background-repeat: repeat; &#10; }&#10;&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 2: HTML Images"/>
<close container="H1">
<newline/>
<open container="H2">
<text value="Images"/>
<close container="H2">
<newline/>
<open container="H3">
<text value="JPEGs:"/>
<close container="H3">
<newline/>
<open container="P">
<leaf tag="IMG">
<attr key="src" value="raptor.jpg"/>
<attr key="align" value="left"/>
</leaf>
<text value="This is some text to show how a paragraph "/>
<newline/>
<text value=" "/>
<text value="would flow around an image. This is some text to show how a paragraph would "/>
<newline/>
<text value=" "/>
<text value="flow around an image. This is some text to show how a paragraph would flow around "/>
<newline/>
<text value=" "/>
<text value="an image. "/>
<close container="P">
<newline/>
<open container="P">
<text value="This is some text to show how a paragraph would flow around an image. This "/>
<newline/>
<text value=" "/>
<text value="is some text to show how a paragraph would flow around an image. This is some "/>
<newline/>
<text value=" "/>
<text value="text to show how a paragraph would flow around an image. This is some text to "/>
<newline/>
<text value=" "/>
<text value="show how a paragraph would flow around an image. This is some text to show how "/>
<newline/>
<text value=" "/>
<text value="a paragraph would flow around an image. "/>
<close container="P">
<newline/>
<open container="H3">
<text value="Animated GIFs:"/>
<close container="H3">
<newline/>
<open container="H3">
<leaf tag="IMG">
<attr key="src" value="Anieyes.gif"/>
<attr key="width" value="72"/>
<attr key="height" value="37"/>
</leaf>
<close container="H3">
<newline/>
<open container="H3">
<text value="Background Images:"/>
<close container="H3">
<newline/>
<open container="PRE">
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<close container="PRE">
<newline/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,338 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 3"/>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 3: Basic Tables"/>
<close container="H1">
<newline/>
<open container="H2">
<text value="Simple table, 75% width, border=1"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="width" value="75%"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="bgcolor" value="blue"/>
</open>
<text value="cell bg"/>
<close container="TD">
<open container="TD">
<text value="Two"/>
<close container="TD">
<open container="TD">
<text value="Three"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="align" value="left"/>
</open>
<text value="left"/>
<close container="TD">
<open container="TD">
<attr key="align" value="center"/>
</open>
<text value="center"/>
<close container="TD">
<open container="TD">
<attr key="align" value="right"/>
</open>
<text value="right"/>
<close container="TD">
<close container="TR">
<open container="TR">
<attr key="bgcolor" value="yellow"/>
</open>
<open container="TD">
<attr key="height" value="50"/>
</open>
<text value="row bg"/>
<close container="TD">
<open container="TD">
<attr key="valign" value="top"/>
</open>
<text value="top"/>
<close container="TD">
<open container="TD">
<attr key="valign" value="bottom"/>
</open>
<text value="bottom"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="H2">
<text value="Row Span, auto width table, border=5"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value="5"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="rowspan" value="2"/>
</open>
<text value="c0r[0-1] Data 1 span=2 rows"/>
<close container="TD">
<open container="TD">
<text value="c0r0"/>
<close container="TD">
<open container="TD">
<text value="c1r0"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r1"/>
<close container="TD">
<open container="TD">
<text value="c1r1"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="rowspan" value="5"/>
<attr key="background" value="bg.jpg"/>
</open>
<text value="c0r[2-6],Data 2 span=5 rows"/>
<close container="TD">
<open container="TD">
<text value="c0r2"/>
<close container="TD">
<open container="TD">
<text value="c1r2"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r3"/>
<close container="TD">
<open container="TD">
<text value="c1r3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r4"/>
<close container="TD">
<open container="TD">
<text value="c1r4"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r5"/>
<close container="TD">
<open container="TD">
<text value="c1r5"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r6"/>
<close container="TD">
<open container="TD">
<text value="c1r6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="rowspan" value="3"/>
</open>
<text value="c0r[7-9] span=3 rows"/>
<close container="TD">
<open container="TD">
<text value="c0r7"/>
<close container="TD">
<open container="TD">
<text value="c1r7"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r8"/>
<close container="TD">
<open container="TD">
<text value="c1r8"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r9"/>
<close container="TD">
<open container="TD">
<text value="c1r9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="H2">
<text value="Col Span auto width table"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value=""/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="colspan" value="8"/>
</open>
<text value="r0c[0-7], span=8"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="10"/>
</open>
<text value="r0col[8-17], span=10 cols"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="colspan" value="3"/>
</open>
<text value="r1c[0-2], span=3"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="5"/>
</open>
<text value="r1c[3-7], span=5"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="7"/>
</open>
<text value="r1c[8-14], span=7"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="3"/>
</open>
<text value="r1c[15-17], span=3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="r2c0"/>
<close container="TD">
<open container="TD">
<text value="r2c1"/>
<close container="TD">
<open container="TD">
<text value="r2c3"/>
<close container="TD">
<open container="TD">
<text value="r2c4"/>
<close container="TD">
<open container="TD">
<text value="r2c5"/>
<close container="TD">
<open container="TD">
<text value="r2c6"/>
<close container="TD">
<open container="TD">
<text value="r2c7"/>
<close container="TD">
<open container="TD">
<text value="r2c8"/>
<close container="TD">
<open container="TD">
<text value="r2c9"/>
<close container="TD">
<open container="TD">
<text value="r2c10"/>
<close container="TD">
<open container="TD">
<text value="r2c11"/>
<close container="TD">
<open container="TD">
<text value="r2c12"/>
<close container="TD">
<open container="TD">
<text value="r2c13"/>
<close container="TD">
<open container="TD">
<text value="r2c14"/>
<close container="TD">
<open container="TD">
<text value="r2c15"/>
<close container="TD">
<open container="TD">
<text value="r2c16"/>
<close container="TD">
<open container="TD">
<text value="r2c17"/>
<close container="TD">
<open container="TD">
<text value="r2c18"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="H2">
<text value="Row and Col Span"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value=""/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="colspan" value="2"/>
<attr key="rowspan" value="2"/>
</open>
<text value="r[0-2]c[0-1]"/>
<close container="TD">
<open container="TD">
<text value="r0c2"/>
<close container="TD">
<open container="TD">
<text value="r0c3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="r1c2"/>
<close container="TD">
<open container="TD">
<text value="r1c3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="r2c0"/>
<close container="TD">
<open container="TD">
<text value="r2c1"/>
<close container="TD">
<open container="TD">
<text value="r2c2"/>
<close container="TD">
<open container="TD">
<text value="r2c3"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="P">
<entity value="bs"/>
<close container="P">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,291 @@
<begin>
<open container="HTML">
<open container="META">
<leaf tag="META">
<attr key="HTTP-EQUIV" value="Content-Type"/>
<attr key="CONTENT" value="text/html; charset=iso-8859-1"/>
</leaf>
<close container="head">
<open container="META">
<leaf tag="META">
<attr key="NAME" value="GENERATOR"/>
<attr key="CONTENT" value="Mozilla/4.09 [en] (WinNT; U) [Netscape]"/>
</leaf>
<close container="head">
<open container="TITLE">
<title value="test4"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
BODY { font-size: 12pt; }
" value="</STYLE>"/>
<content value="&#10;BODY { font-size: 12pt; }&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<newline/>
<newline/>
<open container="H1">
<newline/>
<text value="Example 4: Some simple tables."/>
<close container="H1">
<newline/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TH">
<attr key="BACKGROUND" value="bg.jpg"/>
</open>
<text value="Color"/>
<entity value="bs"/>
<close container="TH">
<open container="TH">
<attr key="BACKGROUND" value="bg.jpg"/>
</open>
<text value="Meaning"/>
<entity value="bs"/>
<close container="TH">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="BGCOLOR" value="#90EE90"/>
</open>
<text value="lightgreen"/>
<close container="TD">
<open container="TD">
<text value="Light green is used on cells that have a colspan"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="BGCOLOR" value="#F0E68C"/>
</open>
<text value="khaki"/>
<close container="TD">
<open container="TD">
<text value="Khaki is used on cells that have a rowspan"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="BGCOLOR" value="#D3D3D3"/>
</open>
<text value="lightgrey"/>
<close container="TD">
<open container="TD">
<text value="Light grey is used on cells that have a rowspan "/>
<open container="B">
<text value="and"/>
<close container="B">
<text value=" "/>
<text value="a colspan"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
</open>
<open container="CAPTION">
<text value="Table 1 has a caption at the top."/>
<entity value="bs"/>
<text value=" "/>
<text value="It is defined to be 100%"/>
<newline/>
<text value="of it's parent's width."/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="BGCOLOR" value="#90EE90"/>
</open>
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="BGCOLOR" value="#90EE90"/>
</open>
<text value="Stuff to test out table cell layout."/>
<newline/>
<text value="This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="500"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="ROWSPAN" value="2"/>
<attr key="BGCOLOR" value="#F0E68C"/>
</open>
<text value="Stuff to test out table cell layout."/>
<newline/>
<text value="This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<open container="CAPTION">
<attr key="ALIGN" value="BOTTOM"/>
</open>
<text value="Table 2 has a bottom caption."/>
<entity value="bs"/>
<text value=" "/>
<text value="It's width is"/>
<newline/>
<text value="500 pixels."/>
<close container="CAPTION">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
</open>
<open container="CAPTION">
<text value="Table 3 has auto-width (no width param specified.)"/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
<attr key="BGCOLOR" value="#D3D3D3"/>
</open>
<text value="Stuff to test out table cell"/>
<newline/>
<text value="layout. This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="more text"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="COLS" value="3"/>
</open>
<open container="CAPTION">
<text value="Table 4 is the same as Table 3, but with equal column widths."/>
<entity value="bs"/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
<attr key="BGCOLOR" value="#D3D3D3"/>
</open>
<text value="Stuff to test out table cell"/>
<newline/>
<text value="layout. This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="more text"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,969 @@
<begin>
<open container="HTML">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
SPAN.peter { font-family: "monospace"; }
SPAN.seven { font-size: xx-large; }
SPAN.six { font-size: x-large; }
SPAN.five { font-size: large; }
SPAN.four { font-size: medium; }
SPAN.three { font-size: small; }
SPAN.two { font-size: x-small; }
SPAN.one { font-size: xx-small; }
/*H1, H2, H3, H4, H5, H6 { font-weight: normal; }*/
" value="</style>"/>
<content value="&#10;SPAN.peter { font-family: &quot;monospace&quot;; }&#10;SPAN.seven { font-size: xx-large; }&#10;SPAN.six { font-size: x-large; }&#10;SPAN.five { font-size: large; }&#10;SPAN.four { font-size: medium; }&#10;SPAN.three { font-size: small; }&#10;SPAN.two { font-size: x-small; }&#10;SPAN.one { font-size: xx-small; }&#10;/*H1, H2, H3, H4, H5, H6 { font-weight: normal; }*/&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="text" value="#00FF00"/>
</open>
<newline/>
<newline/>
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="this is size five"/>
<newline/>
<open container="FONT">
<attr key="point-size" value="12"/>
</open>
<text value="this is point-size 12"/>
<newline/>
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="this is size seven"/>
<newline/>
<close container="FONT">
<newline/>
<close container="FONT">
<newline/>
<close container="FONT">
<newline/>
<newline/>
<open container="B">
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="heading"/>
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="seven"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="FONT">
<close container="B">
<newline/>
<open container="H1">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="6"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="six"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H1">
<newline/>
<open container="H2">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="five"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H2">
<newline/>
<open container="H3">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="4"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="four"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H3">
<newline/>
<open container="H4">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="3"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="three"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H4">
<newline/>
<open container="H5">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="2"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="two"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H5">
<newline/>
<open container="H6">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="1"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="one"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H6">
<newline/>
<newline/>
<open container="FORM">
<newline/>
<newline/>
<open container="H3">
<text value="Unvarnished"/>
<close container="H3">
<newline/>
<open container="STRIKE">
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="STRIKE">
<newline/>
<newline/>
<open container="H3">
<text value="Font size=3 color=#ff0000 face=desdemona, arial, strike"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="size" value="3"/>
<attr key="color" value="#ff0000"/>
<attr key="face" value="desdemona, arial"/>
</open>
<open container="STRIKE">
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="STRIKE">
<newline/>
<close container="FONT">
<newline/>
<newline/>
<open container="H3">
<text value="font size=2"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="size" value="2"/>
</open>
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="FONT">
<newline/>
<newline/>
<open container="H3">
<text value="font face=Arial"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="face" value="Arial"/>
</open>
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="FONT">
<newline/>
<newline/>
<open container="H3">
<text value="font point-size=18"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="point-size" value="18"/>
</open>
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="FONT">
<newline/>
<newline/>
<newline/>
<open container="PRE">
<newline/>
<text value="this is pre text"/>
<newline/>
<close container="PRE">
<newline/>
<text value="this is"/>
<open container="SPAN">
<attr key="class" value="peter"/>
</open>
<text value="peter text"/>
<close container="SPAN">
<newline/>
<close container="form">
<newline/>
<newline/>
<open container="SMALL">
<newline/>
<open container="PRE">
<newline/>
<text value="this is small pre text"/>
<newline/>
<close container="PRE">
<newline/>
<close container="SMALL">
<newline/>
<newline/>
<open container="FONT">
<attr key="size" value="7"/>
<attr key="color" value="#0000ff"/>
</open>
<newline/>
<text value="pre table"/>
<newline/>
<open container="TABLE">
<open container="CAPTION">
<text value="this is the caption"/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="this is "/>
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="the cell"/>
<close container="FONT">
<close container="TD">
<open container="TD">
<text value="cell two"/>
<newline/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="FONT">
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,831 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Test 6"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
PRE { color:red; }
" value="</style>"/>
<content value="&#10;PRE { color:red; }&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<newline/>
<open container="H1">
<text value="Example 6: Table Stress Test"/>
<close container="H1">
<newline/>
<open container="PRE">
<text value="Resize document for maximum effect"/>
<close container="PRE">
<newline/>
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="H2">
<text value="Auto-width tables with spans nested 8 levels deep"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="red"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightblue"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightgreen"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="orange"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="red"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightblue"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightgreen"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="H2">
<text value="100% width tables nested 6 levels deep"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="yellow"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell one"/>
<close container="TD">
<open container="TD">
<text value="Cell2"/>
<close container="TD">
<open container="TD">
<text value="Cell 3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell 4"/>
<close container="TD">
<open container="TD">
<text value="Cell 5"/>
<close container="TD">
<open container="TD">
<text value="Cell 6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="lightgrey"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="1"/>
<close container="TD">
<open container="TD">
<text value="2"/>
<close container="TD">
<open container="TD">
<text value="3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="4"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="lightblue"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="1"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="red"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="1"/>
<close container="TD">
<open container="TD">
<text value="2"/>
<close container="TD">
<open container="TD">
<text value="3"/>
<close container="TD">
<open container="TD">
<text value="4"/>
<close container="TD">
<open container="TD">
<text value="5"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="6"/>
<close container="TD">
<open container="TD">
<text value="7"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="green"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="purple"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="orange"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<text value="m"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="p"/>
<close container="TD">
<open container="TD">
<text value="q"/>
<close container="TD">
<open container="TD">
<text value="r"/>
<close container="TD">
<open container="TD">
<text value="s"/>
<close container="TD">
<open container="TD">
<text value="t"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="u"/>
<close container="TD">
<open container="TD">
<text value="v"/>
<close container="TD">
<open container="TD">
<text value="w"/>
<close container="TD">
<open container="TD">
<text value="x"/>
<close container="TD">
<open container="TD">
<text value="y"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="p"/>
<close container="TD">
<open container="TD">
<text value="q"/>
<close container="TD">
<open container="TD">
<text value="r"/>
<close container="TD">
<open container="TD">
<text value="s"/>
<close container="TD">
<open container="TD">
<text value="t"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="u"/>
<close container="TD">
<open container="TD">
<text value="v"/>
<close container="TD">
<open container="TD">
<text value="w"/>
<close container="TD">
<open container="TD">
<text value="x"/>
<close container="TD">
<open container="TD">
<text value="y"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="p"/>
<close container="TD">
<open container="TD">
<text value="q"/>
<close container="TD">
<open container="TD">
<text value="r"/>
<close container="TD">
<open container="TD">
<text value="s"/>
<close container="TD">
<open container="TD">
<text value="t"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="u"/>
<close container="TD">
<open container="TD">
<text value="v"/>
<close container="TD">
<open container="TD">
<text value="w"/>
<close container="TD">
<open container="TD">
<text value="x"/>
<close container="TD">
<open container="TD">
<text value="y"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<open container="TD">
<text value="0"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<text value="m"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="4"/>
<close container="TD">
<open container="TD">
<text value="5"/>
<close container="TD">
<open container="TD">
<text value="6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="7"/>
<close container="TD">
<open container="TD">
<text value="8"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="7"/>
<close container="TD">
<open container="TD">
<text value="8"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="8"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<newline/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,23 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 7"/>
<close container="head">
<open container="BODY">
<newline/>
<open container="H1">
<text value="Example 7: A scaled animated image"/>
<close container="H1">
<newline/>
<leaf tag="IMG">
<attr key="SRC" value="Anieyes.gif"/>
<attr key="WIDTH" value="600"/>
<attr key="HEIGHT" value="600"/>
</leaf>
<newline/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,296 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 8"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
INPUT#input1 {
font-size: large;
}
INPUT#input2 {
font-size: medium;
}
TEXTAREA#textarea1 {
width: 300px;
height: 120px;
font-size: large;
}
SELECT#select1 {
font-size: large;
}
" value="</style>"/>
<content value="&#10;INPUT#input1 {&#10; font-size: large;&#10;}&#10;INPUT#input2 {&#10; font-size: medium;&#10;}&#10;TEXTAREA#textarea1 {&#10; width: 300px;&#10;&#9;height: 120px;&#10; font-size: large;&#10;}&#10;SELECT#select1 {&#10;&#9;font-size: large;&#10;}&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<newline/>
<newline/>
<open container="H1">
<text value="Example 8: Forms"/>
<close container="H1">
<newline/>
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="FORM">
<attr key="METHOD" value="GET"/>
<attr key="ACTION" value="http://search.yahoo.com/bin/search"/>
<attr key="NAME" value="searchform"/>
</open>
<newline/>
<open container="P">
<text value=" "/>
<text value="hey yahoo "/>
<close container="P">
<newline/>
<text value=" "/>
<leaf tag="INPUT">
<attr key="TYPE" value="TEXT"/>
<attr key="NAME" value="p"/>
<attr key="SIZE" value="15"/>
<attr key="MAXLENGTH" value="80"/>
</leaf>
<newline/>
<text value=" "/>
<leaf tag="INPUT">
<attr key="TYPE" value="submit"/>
<attr key="VALUE" value="Search"/>
</leaf>
<newline/>
<text value=" "/>
<leaf tag="INPUT">
<attr key="TYPE" value="HIDDEN"/>
<attr key="NAME" value="a"/>
<attr key="VALUE" value="n"/>
</leaf>
<newline/>
<close container="form">
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<open container="FORM">
<attr key="METHOD" value="POST"/>
<attr key="ACTION" value="http://www.mcp.com/cgi-bin/post-query"/>
<attr key="NAME" value="echo"/>
</open>
<newline/>
<text value=" "/>
<text value="password:"/>
<entity value="bs"/>
<entity value="bs"/>
<leaf tag="INPUT">
<attr key="TYPE" value="PASSWORD"/>
</leaf>
<text value=" "/>
<leaf tag="BR"/>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="4"/>
<attr key="cols" value="10"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<entity value="bs"/>
<entity value="bs"/>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="id" value="textarea1"/>
<attr key="value" value="a textarea"/>
<attr key="another textarea
size, font set by css" value="</textarea>"/>
<content value="another textarea&#10;size, font set by css"/>
</leaf>
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<text value="a checkbox: "/>
<leaf tag="INPUT">
<attr key="type" value="checkbox"/>
<attr key="name" value="check1"/>
<attr key="checked" value=""/>
</leaf>
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
<attr key="checked" value=""/>
</leaf>
<text value=" "/>
<text value="radio2"/>
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<entity value="bs"/>
<entity value="bs"/>
<text value="file content not being sent yet"/>
<newline/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="RESET"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="image"/>
<attr key="src" value="raptor.jpg"/>
<attr key="width" value="50"/>
<attr key="height" value="50"/>
<attr key="name" value="imageSubmit"/>
</leaf>
<text value=" "/>
<text value="an image submit. For now, click twice."/>
<newline/>
<close container="form">
<newline/>
<leaf tag="BR"/>
<newline/>
<leaf tag="BR"/>
<newline/>
<text value="Additional tests -"/>
<entity value="bs"/>
<newline/>
<open container="A">
<attr key="href" value="test8siz.html"/>
</open>
<text value="sizing"/>
<close container="A">
<text value=","/>
<newline/>
<open container="A">
<attr key="href" value="test8sca.html"/>
</open>
<text value="scalability"/>
<close container="A">
<text value=","/>
<newline/>
<open container="A">
<attr key="href" value="test8tab.html"/>
</open>
<text value="tables(not working)"/>
<close container="A">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,35 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 9: Frames"/>
<close container="head">
<open container="FRAMESET">
<attr key="rows" value="60%,40%"/>
</open>
<newline/>
<text value=" "/>
<leaf tag="FRAME">
<attr key="src" value="test9a.html"/>
</leaf>
<newline/>
<text value=" "/>
<open container="FRAMESET">
<attr key="cols" value="1*,2*"/>
</open>
<newline/>
<text value="&#9;"/>
<leaf tag="FRAME">
<attr key="src" value="test4.html"/>
</leaf>
<newline/>
<text value=" "/>
<leaf tag="FRAME">
<attr key="src" value="test5.html"/>
</leaf>
<newline/>
<text value=" "/>
<close container="FRAMESET">
<newline/>
<close container="FRAMESET">
<close container="html">
</begin>

Просмотреть файл

@ -943,9 +943,8 @@ nsresult CNavDTD::HandleEntityToken(CToken* aToken) {
CEntityToken* et = (CEntityToken*)(aToken);
nsresult result=NS_OK;
eHTMLTags tokenTagType=(eHTMLTags)et->GetTypeID();
if(PR_FALSE==CanOmit(GetTopNode(),tokenTagType)) {
if(PR_FALSE==CanOmit(GetTopNode(),eHTMLTag_entity)) {
nsCParserNode aNode((CHTMLToken*)aToken,mLineNumber);
result=AddLeaf(aNode);
}
@ -3175,11 +3174,11 @@ CNavDTD::ConsumeEntity(PRUnichar aChar,CScanner& aScanner,CToken*& aToken) {
if(NS_OK==result) {
if(nsString::IsAlpha(ch)) { //handle common enity references &xxx; or &#000.
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_unknown,gEmpty);
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_entity,gEmpty);
result = aToken->Consume(ch,aScanner); //tell new token to finish consuming text...
}
else if(kHashsign==ch) {
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_unknown,gEmpty);
aToken = gTokenRecycler.CreateTokenOfType(eToken_entity,eHTMLTag_entity,gEmpty);
result=aToken->Consume(0,aScanner);
}
else {
@ -3225,7 +3224,7 @@ CNavDTD::ConsumeWhitespace(PRUnichar aChar,
* @return new token or null
*/
nsresult CNavDTD::ConsumeComment(PRUnichar aChar,CScanner& aScanner,CToken*& aToken){
aToken = gTokenRecycler.CreateTokenOfType(eToken_comment,eHTMLTag_unknown,gEmpty);
aToken = gTokenRecycler.CreateTokenOfType(eToken_comment,eHTMLTag_comment,gEmpty);
nsresult result=NS_OK;
if(aToken) {
result=aToken->Consume(aChar,aScanner);

Просмотреть файл

@ -41,7 +41,7 @@ static char gSkippedContentTags[] = {
* @param
* @return
*/
ostream& operator<<(ostream& os,nsAutoString& aString){
ostream& operator<<(ostream& os, nsAutoString& aString) {
const PRUnichar* uc=aString.GetUnicode();
int len=aString.Length();
for(int i=0;i<len;i++)
@ -49,6 +49,19 @@ ostream& operator<<(ostream& os,nsAutoString& aString){
return os;
}
/**
*
* @update gess8/8/98
* @param
* @return
*/
ostream& operator<<(ostream& os,const nsString& aString) {
const PRUnichar* uc=aString.GetUnicode();
int len=aString.Length();
for(int i=0;i<len;i++)
os<<(char)uc[i];
return os;
}
class nsLoggingSink : public nsILoggingSink {
public:
@ -420,12 +433,16 @@ nsresult
nsLoggingSink::LeafNode(const nsIParserNode& aNode)
{
WriteTabs(*mOutput,1+mLevel);
nsHTMLTag nodeType = nsHTMLTag(aNode.GetNodeType());
nsHTMLTag nodeType = nsHTMLTag(aNode.GetNodeType());
if ((nodeType >= eHTMLTag_unknown) &&
(nodeType <= nsHTMLTag(NS_HTML_TAG_MAX))) {
const char* tag = NS_EnumToTag(nodeType);
(*mOutput) << "<leaf tag=\"" << tag << "\"";
if(tag)
(*mOutput) << "<leaf tag=\"" << tag << "\"";
else (*mOutput) << "<leaf tag=\"???\"";
if (WillWriteAttributes(aNode)) {
(*mOutput) << ">" << endl;
WriteAttributes(aNode);
@ -439,29 +456,29 @@ nsLoggingSink::LeafNode(const nsIParserNode& aNode)
PRInt32 pos;
nsAutoString tmp;
switch (nodeType) {
case eHTMLTag_whitespace:
case eHTMLTag_text:
QuoteText(aNode.GetText(), tmp);
(*mOutput) << "<text value=\"" << tmp << "\"/>" << endl;
break;
case eHTMLTag_whitespace:
case eHTMLTag_text:
QuoteText(aNode.GetText(), tmp);
(*mOutput) << "<text value=\"" << tmp << "\"/>" << endl;
break;
case eHTMLTag_newline:
(*mOutput) << "<newline/>" << endl;
break;
case eHTMLTag_newline:
(*mOutput) << "<newline/>" << endl;
break;
case eHTMLTag_entity:
tmp.Append(aNode.GetText());
tmp.Cut(0, 1);
pos = tmp.Length() - 1;
if (pos >= 0) {
tmp.Cut(pos, 1);
}
(*mOutput) << "<entity value=\"" << tmp << "\"/>" << endl;
break;
case eHTMLTag_entity:
tmp.Append(aNode.GetText());
tmp.Cut(0, 1);
pos = tmp.Length() - 1;
if (pos >= 0) {
tmp.Cut(pos, 1);
}
(*mOutput) << "<entity value=\"" << tmp << "\"/>" << endl;
break;
default:
NS_NOTREACHED("unsupported leaf node type");
}
default:
NS_NOTREACHED("unsupported leaf node type");
}//switch
}
return NS_OK;
}

Просмотреть файл

@ -205,7 +205,7 @@ PRInt32 nsCParserNode::GetNodeType(void) const{
/**
* Gets the token type, which corresponds to a value from
* eHTMLTags_xxx.
* eHTMLTokens_xxx.
*
* @update gess 3/25/98
* @param

Просмотреть файл

@ -0,0 +1,10 @@
s:/mozilla/dist/win32_d.obj/bin/res/samples/test0.html s:/mozilla/htmlparser/tests/logparse/test0.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test1.html s:/mozilla/htmlparser/tests/logparse/test1.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test2.html s:/mozilla/htmlparser/tests/logparse/test2.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test3.html s:/mozilla/htmlparser/tests/logparse/test3.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test4.html s:/mozilla/htmlparser/tests/logparse/test4.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test5.html s:/mozilla/htmlparser/tests/logparse/test5.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test6.html s:/mozilla/htmlparser/tests/logparse/test6.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test7.html s:/mozilla/htmlparser/tests/logparse/test7.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test8.html s:/mozilla/htmlparser/tests/logparse/test8.bl
s:/mozilla/dist/win32_d.obj/bin/res/samples/test9.html s:/mozilla/htmlparser/tests/logparse/test9.bl

Просмотреть файл

@ -118,27 +118,45 @@ PRBool CompareFiles(const char* aFilename1, const char* aFilename2) {
//----------------------------------------------------------------------
void ComputeTempFilename(const char* anIndexFilename, char* aTempFilename) {
if(anIndexFilename) {
strcpy(aTempFilename,anIndexFilename);
char* pos=strrchr(aTempFilename,'\\');
if(!pos)
pos=strrchr(aTempFilename,'/');
if(pos) {
(*pos)=0;
strcat(aTempFilename,"/temp.blx");
return;
}
}
//fall back to our last resort...
strcpy(aTempFilename,"c:/windows/temp/temp.blx");
}
//----------------------------------------------------------------------
static const char* kAppName = "logparse ";
static const char* kOption1 = "Compare baseline file-set";
static const char* kOption2 = "Generate baseline ";
static const char* kResultMsg[2] = {" does not match baseline."," matches baseline."};
static const char* kResultMsg[2] = {" failed!"," ok."};
void ValidateBaselineFiles(const char* anIndexFilename) {
fstream theIndexFile(anIndexFilename,ios::in | ios::nocreate);
char theFilename[500];
char theBaselineFilename[500];
char theTempFilename[500];
PRBool done=PR_FALSE;
ComputeTempFilename(anIndexFilename,theTempFilename);
while(!done) {
theIndexFile >> theFilename;
theIndexFile >> theBaselineFilename;
if(theFilename[0] && theBaselineFilename[0]) {
char theTempFile[500];
sprintf(theTempFile,theBaselineFilename);
strcat(theTempFile,"x");
if(0==GenerateBaselineFile(theFilename,theTempFile)) {
PRBool matches=CompareFiles(theTempFile,theBaselineFilename);
if(0==GenerateBaselineFile(theFilename,theTempFilename)) {
PRBool matches=CompareFiles(theTempFilename,theBaselineFilename);
cout << theFilename << kResultMsg[matches] << endl;
}
}

Просмотреть файл

@ -0,0 +1,458 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 0"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
a#id.foo:visited:first-line { color: red; }
a#id.foo:first-line { color: red; }
a#id.foo:visited { color: red; }
a#id:first-line { color: red; }
a#id:visited { color: red; }
a:first-line { color: red; }
a:visited { color: red; }
a:visited:first-line { color: red; }
a:visited:visited { color: red; }
a:first-line:visited { color: red; }
:active { color: blue; }
:first-letter { color: green; }
" value="</style>"/>
<content value="&#10; a#id.foo:visited:first-line { color: red; }&#10; a#id.foo:first-line { color: red; }&#10; a#id.foo:visited { color: red; }&#10; a#id:first-line { color: red; }&#10; a#id:visited { color: red; }&#10; a:first-line { color: red; }&#10; a:visited { color: red; }&#10; a:visited:first-line { color: red; }&#10; a:visited:visited { color: red; }&#10; a:first-line:visited { color: red; }&#10; :active { color: blue; }&#10; :first-letter { color: green; }&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 0: Basic HTML Text Styles"/>
<close container="H1">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="H2">
<text value="Formatted Text"/>
<close container="H2">
<newline/>
<open container="P">
<text value="This is a basic paragraph with "/>
<open container="B">
<text value="bold"/>
<close container="B">
<text value=", "/>
<open container="I">
<text value="italic"/>
<close container="I">
<text value=" "/>
<text value="and "/>
<open container="I">
<text value="bold-italic "/>
<newline/>
<text value=" "/>
<close container="I">
<text value=" "/>
<text value="text. It also includes "/>
<open container="FONT">
<attr key="color" value="#FF0000"/>
</open>
<text value="red"/>
<close container="FONT">
<text value=", "/>
<open container="FONT">
<attr key="color" value="#00FF00"/>
</open>
<text value="green"/>
<close container="FONT">
<text value=" "/>
<newline/>
<text value=" "/>
<text value="and "/>
<open container="FONT">
<attr key="color" value="#0000FF"/>
</open>
<text value="blue"/>
<close container="FONT">
<text value=" "/>
<text value="text. It has "/>
<open container="S">
<text value="strikethru"/>
<close container="S">
<text value=" "/>
<text value="and "/>
<open container="U">
<text value="underline"/>
<close container="U">
<text value=". "/>
<newline/>
<text value=" "/>
<open container="U">
<text value=" "/>
<close container="U">
<close container="P">
<newline/>
<open container="P">
<text value="This is a paragraph with font variations: "/>
<open container="B">
<open container="FONT">
<attr key="face" value="Arial, Helvetica, sans-serif"/>
</open>
<text value="Arial,"/>
<close container="FONT">
<close container="B">
<open container="FONT">
<attr key="face" value="Arial, Helvetica, sans-serif"/>
</open>
<text value=" "/>
<newline/>
<text value=" "/>
<open container="I">
<open container="FONT">
<attr key="face" value="Verdana, Arial, Helvetica, sans-serif"/>
</open>
<text value="Verdana"/>
<close container="FONT">
<text value=","/>
<close container="I">
<text value=" "/>
<open container="FONT">
<attr key="face" value="co"/>
</open>
<text value="COURIER, "/>
<newline/>
<text value=" "/>
<open container="FONT">
<attr key="face" value="Times New Roman, Times, serif"/>
</open>
<text value="Times New Roman."/>
<close container="FONT">
<close container="FONT">
<close container="FONT">
<close container="P">
<newline/>
<open container="P">
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="Font size=7, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="6"/>
</open>
<text value="Font size=6, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="Font "/>
<newline/>
<text value=" "/>
<text value="size=5, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="4"/>
</open>
<text value="Font size=4, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="3"/>
</open>
<text value="Font size=3, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="2"/>
</open>
<text value="Font "/>
<newline/>
<text value=" "/>
<text value="size=2, "/>
<close container="FONT">
<open container="FONT">
<attr key="size" value="1"/>
</open>
<text value="Font size=1, "/>
<close container="FONT">
<open container="FONT">
<attr key="point-size" value="24"/>
<attr key="font-weight" value="700"/>
</open>
<text value="Font "/>
<newline/>
<text value=" "/>
<text value="point-size=24 font-weight=700"/>
<close container="FONT">
<close container="P">
<newline/>
<open container="P">
<text value="3D Text. 3D Text. 3D Text. 3D Text. 3D Text. "/>
<leaf tag="BR"/>
<newline/>
<close container="P">
<open container="H2">
<leaf tag="BR"/>
<newline/>
<close container="H2">
<newline/>
<open container="H2">
<text value="Listings"/>
<close container="H2">
<newline/>
<open container="H3">
<text value="Bulleted List "/>
<close container="H3">
<newline/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="One"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Two"/>
<newline/>
<text value=" "/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Apples"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Oranges"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Bananas"/>
<close container="LI">
<newline/>
<text value=" "/>
<close container="UL">
<newline/>
<text value=" "/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Three"/>
<close container="LI">
<newline/>
<close container="UL">
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="H3">
<text value="Numbered List "/>
<close container="H3">
<newline/>
<open container="OL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="One"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Two "/>
<newline/>
<text value=" "/>
<open container="OL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Apples"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Oranges"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Bananas"/>
<close container="LI">
<newline/>
<text value=" "/>
<close container="OL">
<newline/>
<text value=" "/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Three"/>
<close container="LI">
<newline/>
<close container="OL">
<newline/>
<open container="H2">
<text value="Justified Text"/>
<close container="H2">
<newline/>
<open container="P">
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<newline/>
<text value=" "/>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<newline/>
<text value=" "/>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<newline/>
<text value=" "/>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="left"/>
<close container="B">
<text value=". "/>
<close container="P">
<newline/>
<open container="P">
<attr key="align" value="RIGHT"/>
</open>
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="right. "/>
<close container="B">
<text value="This paragarph is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<open container="B">
<text value=" "/>
<close container="B">
<text value="This paragarph "/>
<newline/>
<text value=" "/>
<text value="is aligned "/>
<open container="B">
<text value="right. "/>
<close container="B">
<close container="P">
<newline/>
<open container="P">
<attr key="align" value="CENTER"/>
</open>
<text value="This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=". This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value=".This paragraph is aligned "/>
<newline/>
<text value=" "/>
<open container="B">
<text value="center"/>
<close container="B">
<text value="."/>
<close container="P">
<newline/>
<open container="P">
<close container="P">
<newline/>
<open container="P">
<entity value="bs"/>
<close container="P">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,236 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 1"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
H1{ color: rgb(128,0,128) }
PRE { background-color: rgb(200,200,200) }
B {
background-color: rgb(128, 128, 255);
font-size: large;
}
I {
font-size: larger;
}
B I {
font-size: smaller;
}
LI B {
font-size: .25in;
}
UL LI {
color: green;
list-style: square outside url(resource:/res/gear1.gif); //none;
}
UL UL LI {
color: red;
}
H4 {
color: yelow;
background-image: url(gear1.gif);
background-repeat: repeat;
font-size: 150%;
}
" value="</style>"/>
<content value="&#10;H1{ color: rgb(128,0,128) }&#10;PRE { background-color: rgb(200,200,200) }&#10;B {&#10; background-color: rgb(128, 128, 255);&#10; font-size: large;&#10;}&#10;I {&#10; font-size: larger;&#10;}&#10;B I {&#10; font-size: smaller;&#10;}&#10;LI B {&#10; font-size: .25in;&#10;}&#10;UL LI {&#10; color: green;&#10; list-style: square outside url(resource:/res/gear1.gif);&#9;//none;&#10;}&#10;UL UL LI {&#10; color: red;&#10;}&#10;H4 {&#10; color: yelow;&#10; background-image: url(gear1.gif);&#10; background-repeat: repeat;&#10; font-size: 150%;&#10;}&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 1: CSS HTML Text Styles"/>
<close container="H1">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="P">
<text value="Note -- This document contains the following CSS declarations:"/>
<close container="P">
<newline/>
<open container="PRE">
<text value="H1 { color: rgb(128,0,128) }"/>
<newline/>
<text value="PRE { background-color: rgb(200,200,200); }"/>
<newline/>
<text value="B { background-color: rgb(128, 128, 255); "/>
<newline/>
<text value=" "/>
<text value="font-size: large; } "/>
<newline/>
<text value="I { font-size: larger; } "/>
<newline/>
<text value="B I { font-size: smaller; } "/>
<newline/>
<text value="LI B { font-size: .25in; } "/>
<newline/>
<text value="UL LI { color: green; "/>
<newline/>
<text value=" "/>
<text value="list-style: square outside url(resource:/res/gear1.gif); "/>
<newline/>
<text value=" "/>
<text value="//none; } "/>
<newline/>
<text value="UL UL LI { color: red; } "/>
<newline/>
<text value="H4 { color: yellow;"/>
<newline/>
<text value=" &#9; "/>
<text value="background-image: url(gear1.gif); "/>
<newline/>
<text value=" "/>
<text value="background-repeat: repeat; "/>
<newline/>
<text value=" "/>
<text value="font-size: 150%; } "/>
<newline/>
<close container="PRE">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="P">
<text value="Here is an example of "/>
<open container="B">
<text value="bold"/>
<close container="B">
<text value=", "/>
<open container="I">
<text value="italic"/>
<close container="I">
<text value=" "/>
<text value="and "/>
<open container="B">
<open container="I">
<text value="bold-italic"/>
<close container="I">
<close container="B">
<close container="P">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="P">
<text value="Some links to test pseudo-classes"/>
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://link"/>
</open>
<text value="link"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://visited"/>
</open>
<text value="visited"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://out-of-date"/>
</open>
<text value="outofdate"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://active"/>
</open>
<text value="active"/>
<close container="A">
<close container="P">
<newline/>
<open container="P">
<open container="A">
<attr key="href" value="http://hover"/>
</open>
<text value="hover"/>
<close container="A">
<close container="P">
<newline/>
<open container="H2">
<text value="Bulleted List "/>
<close container="H2">
<newline/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="One"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Two"/>
<newline/>
<text value=" "/>
<open container="UL">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Apples"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Oranges"/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Bananas"/>
<close container="LI">
<newline/>
<text value=" "/>
<close container="UL">
<newline/>
<text value=" "/>
<close container="LI">
<newline/>
<text value=" "/>
<open container="LI">
<text value="Three "/>
<open container="B">
<text value="Bold Text"/>
<close container="B">
<close container="LI">
<newline/>
<close container="UL">
<newline/>
<open container="P">
<leaf tag="BR"/>
<close container="P">
<newline/>
<open container="H4">
<text value="H3 -- A headline style, with a background image repeated and a font size increase "/>
<newline/>
<text value=" "/>
<text value="by 150%. H3 -- A headline style, with a background image repeated and a font "/>
<newline/>
<text value=" "/>
<text value="size increase by 150%. H3 -- A headline style, with a background image repeated "/>
<newline/>
<text value=" "/>
<text value="and a font size increase by 150%. "/>
<close container="H4">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,107 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 2"/>
<close container="head">
<open container="META">
<leaf tag="META">
<attr key="http-equiv" value="Content-Type"/>
<attr key="content" value="text/html; charset=iso-8859-1"/>
</leaf>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
PRE {
background-image: url(gear1.gif);
background-repeat: repeat;
}
" value="</style>"/>
<content value="&#10;PRE {&#10; &#9; background-image: url(gear1.gif); &#10; background-repeat: repeat; &#10; }&#10;&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 2: HTML Images"/>
<close container="H1">
<newline/>
<open container="H2">
<text value="Images"/>
<close container="H2">
<newline/>
<open container="H3">
<text value="JPEGs:"/>
<close container="H3">
<newline/>
<open container="P">
<leaf tag="IMG">
<attr key="src" value="raptor.jpg"/>
<attr key="align" value="left"/>
</leaf>
<text value="This is some text to show how a paragraph "/>
<newline/>
<text value=" "/>
<text value="would flow around an image. This is some text to show how a paragraph would "/>
<newline/>
<text value=" "/>
<text value="flow around an image. This is some text to show how a paragraph would flow around "/>
<newline/>
<text value=" "/>
<text value="an image. "/>
<close container="P">
<newline/>
<open container="P">
<text value="This is some text to show how a paragraph would flow around an image. This "/>
<newline/>
<text value=" "/>
<text value="is some text to show how a paragraph would flow around an image. This is some "/>
<newline/>
<text value=" "/>
<text value="text to show how a paragraph would flow around an image. This is some text to "/>
<newline/>
<text value=" "/>
<text value="show how a paragraph would flow around an image. This is some text to show how "/>
<newline/>
<text value=" "/>
<text value="a paragraph would flow around an image. "/>
<close container="P">
<newline/>
<open container="H3">
<text value="Animated GIFs:"/>
<close container="H3">
<newline/>
<open container="H3">
<leaf tag="IMG">
<attr key="src" value="Anieyes.gif"/>
<attr key="width" value="72"/>
<attr key="height" value="37"/>
</leaf>
<close container="H3">
<newline/>
<open container="H3">
<text value="Background Images:"/>
<close container="H3">
<newline/>
<open container="PRE">
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<text value="This is a preformatted paragraph with a animated background image. "/>
<newline/>
<close container="PRE">
<newline/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,338 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 3"/>
<close container="head">
<open container="BODY">
<attr key="bgcolor" value="#FFFFFF"/>
</open>
<newline/>
<open container="H1">
<text value="Example 3: Basic Tables"/>
<close container="H1">
<newline/>
<open container="H2">
<text value="Simple table, 75% width, border=1"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="width" value="75%"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="bgcolor" value="blue"/>
</open>
<text value="cell bg"/>
<close container="TD">
<open container="TD">
<text value="Two"/>
<close container="TD">
<open container="TD">
<text value="Three"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="align" value="left"/>
</open>
<text value="left"/>
<close container="TD">
<open container="TD">
<attr key="align" value="center"/>
</open>
<text value="center"/>
<close container="TD">
<open container="TD">
<attr key="align" value="right"/>
</open>
<text value="right"/>
<close container="TD">
<close container="TR">
<open container="TR">
<attr key="bgcolor" value="yellow"/>
</open>
<open container="TD">
<attr key="height" value="50"/>
</open>
<text value="row bg"/>
<close container="TD">
<open container="TD">
<attr key="valign" value="top"/>
</open>
<text value="top"/>
<close container="TD">
<open container="TD">
<attr key="valign" value="bottom"/>
</open>
<text value="bottom"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="H2">
<text value="Row Span, auto width table, border=5"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value="5"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="rowspan" value="2"/>
</open>
<text value="c0r[0-1] Data 1 span=2 rows"/>
<close container="TD">
<open container="TD">
<text value="c0r0"/>
<close container="TD">
<open container="TD">
<text value="c1r0"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r1"/>
<close container="TD">
<open container="TD">
<text value="c1r1"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="rowspan" value="5"/>
<attr key="background" value="bg.jpg"/>
</open>
<text value="c0r[2-6],Data 2 span=5 rows"/>
<close container="TD">
<open container="TD">
<text value="c0r2"/>
<close container="TD">
<open container="TD">
<text value="c1r2"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r3"/>
<close container="TD">
<open container="TD">
<text value="c1r3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r4"/>
<close container="TD">
<open container="TD">
<text value="c1r4"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r5"/>
<close container="TD">
<open container="TD">
<text value="c1r5"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r6"/>
<close container="TD">
<open container="TD">
<text value="c1r6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="rowspan" value="3"/>
</open>
<text value="c0r[7-9] span=3 rows"/>
<close container="TD">
<open container="TD">
<text value="c0r7"/>
<close container="TD">
<open container="TD">
<text value="c1r7"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r8"/>
<close container="TD">
<open container="TD">
<text value="c1r8"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="c0r9"/>
<close container="TD">
<open container="TD">
<text value="c1r9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="H2">
<text value="Col Span auto width table"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value=""/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="colspan" value="8"/>
</open>
<text value="r0c[0-7], span=8"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="10"/>
</open>
<text value="r0col[8-17], span=10 cols"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="colspan" value="3"/>
</open>
<text value="r1c[0-2], span=3"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="5"/>
</open>
<text value="r1c[3-7], span=5"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="7"/>
</open>
<text value="r1c[8-14], span=7"/>
<close container="TD">
<open container="TD">
<attr key="colspan" value="3"/>
</open>
<text value="r1c[15-17], span=3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="r2c0"/>
<close container="TD">
<open container="TD">
<text value="r2c1"/>
<close container="TD">
<open container="TD">
<text value="r2c3"/>
<close container="TD">
<open container="TD">
<text value="r2c4"/>
<close container="TD">
<open container="TD">
<text value="r2c5"/>
<close container="TD">
<open container="TD">
<text value="r2c6"/>
<close container="TD">
<open container="TD">
<text value="r2c7"/>
<close container="TD">
<open container="TD">
<text value="r2c8"/>
<close container="TD">
<open container="TD">
<text value="r2c9"/>
<close container="TD">
<open container="TD">
<text value="r2c10"/>
<close container="TD">
<open container="TD">
<text value="r2c11"/>
<close container="TD">
<open container="TD">
<text value="r2c12"/>
<close container="TD">
<open container="TD">
<text value="r2c13"/>
<close container="TD">
<open container="TD">
<text value="r2c14"/>
<close container="TD">
<open container="TD">
<text value="r2c15"/>
<close container="TD">
<open container="TD">
<text value="r2c16"/>
<close container="TD">
<open container="TD">
<text value="r2c17"/>
<close container="TD">
<open container="TD">
<text value="r2c18"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="H2">
<text value="Row and Col Span"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value=""/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="colspan" value="2"/>
<attr key="rowspan" value="2"/>
</open>
<text value="r[0-2]c[0-1]"/>
<close container="TD">
<open container="TD">
<text value="r0c2"/>
<close container="TD">
<open container="TD">
<text value="r0c3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="r1c2"/>
<close container="TD">
<open container="TD">
<text value="r1c3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="r2c0"/>
<close container="TD">
<open container="TD">
<text value="r2c1"/>
<close container="TD">
<open container="TD">
<text value="r2c2"/>
<close container="TD">
<open container="TD">
<text value="r2c3"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<open container="P">
<entity value="bs"/>
<close container="P">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,291 @@
<begin>
<open container="HTML">
<open container="META">
<leaf tag="META">
<attr key="HTTP-EQUIV" value="Content-Type"/>
<attr key="CONTENT" value="text/html; charset=iso-8859-1"/>
</leaf>
<close container="head">
<open container="META">
<leaf tag="META">
<attr key="NAME" value="GENERATOR"/>
<attr key="CONTENT" value="Mozilla/4.09 [en] (WinNT; U) [Netscape]"/>
</leaf>
<close container="head">
<open container="TITLE">
<title value="test4"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
BODY { font-size: 12pt; }
" value="</STYLE>"/>
<content value="&#10;BODY { font-size: 12pt; }&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<newline/>
<newline/>
<open container="H1">
<newline/>
<text value="Example 4: Some simple tables."/>
<close container="H1">
<newline/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TH">
<attr key="BACKGROUND" value="bg.jpg"/>
</open>
<text value="Color"/>
<entity value="bs"/>
<close container="TH">
<open container="TH">
<attr key="BACKGROUND" value="bg.jpg"/>
</open>
<text value="Meaning"/>
<entity value="bs"/>
<close container="TH">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="BGCOLOR" value="#90EE90"/>
</open>
<text value="lightgreen"/>
<close container="TD">
<open container="TD">
<text value="Light green is used on cells that have a colspan"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="BGCOLOR" value="#F0E68C"/>
</open>
<text value="khaki"/>
<close container="TD">
<open container="TD">
<text value="Khaki is used on cells that have a rowspan"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<attr key="BGCOLOR" value="#D3D3D3"/>
</open>
<text value="lightgrey"/>
<close container="TD">
<open container="TD">
<text value="Light grey is used on cells that have a rowspan "/>
<open container="B">
<text value="and"/>
<close container="B">
<text value=" "/>
<text value="a colspan"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
</open>
<open container="CAPTION">
<text value="Table 1 has a caption at the top."/>
<entity value="bs"/>
<text value=" "/>
<text value="It is defined to be 100%"/>
<newline/>
<text value="of it's parent's width."/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="BGCOLOR" value="#90EE90"/>
</open>
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="BGCOLOR" value="#90EE90"/>
</open>
<text value="Stuff to test out table cell layout."/>
<newline/>
<text value="This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="500"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="ROWSPAN" value="2"/>
<attr key="BGCOLOR" value="#F0E68C"/>
</open>
<text value="Stuff to test out table cell layout."/>
<newline/>
<text value="This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<open container="CAPTION">
<attr key="ALIGN" value="BOTTOM"/>
</open>
<text value="Table 2 has a bottom caption."/>
<entity value="bs"/>
<text value=" "/>
<text value="It's width is"/>
<newline/>
<text value="500 pixels."/>
<close container="CAPTION">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
</open>
<open container="CAPTION">
<text value="Table 3 has auto-width (no width param specified.)"/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
<attr key="BGCOLOR" value="#D3D3D3"/>
</open>
<text value="Stuff to test out table cell"/>
<newline/>
<text value="layout. This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="more text"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="COLS" value="3"/>
</open>
<open container="CAPTION">
<text value="Table 4 is the same as Table 3, but with equal column widths."/>
<entity value="bs"/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
<attr key="BGCOLOR" value="#D3D3D3"/>
</open>
<text value="Stuff to test out table cell"/>
<newline/>
<text value="layout. This should be long enough."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value="Stuff to test out table cell layout. This should be long enough."/>
<close container="TD">
<open container="TD">
<text value="more text"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,969 @@
<begin>
<open container="HTML">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
SPAN.peter { font-family: "monospace"; }
SPAN.seven { font-size: xx-large; }
SPAN.six { font-size: x-large; }
SPAN.five { font-size: large; }
SPAN.four { font-size: medium; }
SPAN.three { font-size: small; }
SPAN.two { font-size: x-small; }
SPAN.one { font-size: xx-small; }
/*H1, H2, H3, H4, H5, H6 { font-weight: normal; }*/
" value="</style>"/>
<content value="&#10;SPAN.peter { font-family: &quot;monospace&quot;; }&#10;SPAN.seven { font-size: xx-large; }&#10;SPAN.six { font-size: x-large; }&#10;SPAN.five { font-size: large; }&#10;SPAN.four { font-size: medium; }&#10;SPAN.three { font-size: small; }&#10;SPAN.two { font-size: x-small; }&#10;SPAN.one { font-size: xx-small; }&#10;/*H1, H2, H3, H4, H5, H6 { font-weight: normal; }*/&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<attr key="text" value="#00FF00"/>
</open>
<newline/>
<newline/>
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="this is size five"/>
<newline/>
<open container="FONT">
<attr key="point-size" value="12"/>
</open>
<text value="this is point-size 12"/>
<newline/>
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="this is size seven"/>
<newline/>
<close container="FONT">
<newline/>
<close container="FONT">
<newline/>
<close container="FONT">
<newline/>
<newline/>
<open container="B">
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="heading"/>
<open container="FONT">
<attr key="size" value="7"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="seven"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="FONT">
<close container="B">
<newline/>
<open container="H1">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="6"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="six"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H1">
<newline/>
<open container="H2">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="five"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H2">
<newline/>
<open container="H3">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="4"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="four"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H3">
<newline/>
<open container="H4">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="3"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="three"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H4">
<newline/>
<open container="H5">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="2"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="two"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H5">
<newline/>
<open container="H6">
<text value="heading"/>
<open container="FONT">
<attr key="size" value="1"/>
</open>
<text value="heading"/>
<close container="FONT">
<open container="SPAN">
<attr key="class" value="one"/>
</open>
<text value="heading"/>
<close container="SPAN">
<open container="SMALL">
<text value="heading"/>
<close container="SMALL">
<open container="BIG">
<text value="heading"/>
<close container="BIG">
<close container="H6">
<newline/>
<newline/>
<open container="FORM">
<newline/>
<newline/>
<open container="H3">
<text value="Unvarnished"/>
<close container="H3">
<newline/>
<open container="STRIKE">
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="STRIKE">
<newline/>
<newline/>
<open container="H3">
<text value="Font size=3 color=#ff0000 face=desdemona, arial, strike"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="size" value="3"/>
<attr key="color" value="#ff0000"/>
<attr key="face" value="desdemona, arial"/>
</open>
<open container="STRIKE">
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="STRIKE">
<newline/>
<close container="FONT">
<newline/>
<newline/>
<open container="H3">
<text value="font size=2"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="size" value="2"/>
</open>
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="FONT">
<newline/>
<newline/>
<open container="H3">
<text value="font face=Arial"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="face" value="Arial"/>
</open>
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="FONT">
<newline/>
<newline/>
<open container="H3">
<text value="font point-size=18"/>
<close container="H3">
<newline/>
<open container="FONT">
<attr key="point-size" value="18"/>
</open>
<newline/>
<open container="P">
<text value="plain text"/>
<newline/>
<close container="P">
<open container="P">
<text value="more plain text Reset SUBMIT"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="Reset"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="1"/>
<attr key="cols" value="12"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="PRE">
<text value="this is pre"/>
<close container="PRE">
<text value=" "/>
<text value="this is not pre"/>
<newline/>
<close container="P">
<close container="FONT">
<newline/>
<newline/>
<newline/>
<open container="PRE">
<newline/>
<text value="this is pre text"/>
<newline/>
<close container="PRE">
<newline/>
<text value="this is"/>
<open container="SPAN">
<attr key="class" value="peter"/>
</open>
<text value="peter text"/>
<close container="SPAN">
<newline/>
<close container="form">
<newline/>
<newline/>
<open container="SMALL">
<newline/>
<open container="PRE">
<newline/>
<text value="this is small pre text"/>
<newline/>
<close container="PRE">
<newline/>
<close container="SMALL">
<newline/>
<newline/>
<open container="FONT">
<attr key="size" value="7"/>
<attr key="color" value="#0000ff"/>
</open>
<newline/>
<text value="pre table"/>
<newline/>
<open container="TABLE">
<open container="CAPTION">
<text value="this is the caption"/>
<close container="CAPTION">
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="this is "/>
<open container="FONT">
<attr key="size" value="5"/>
</open>
<text value="the cell"/>
<close container="FONT">
<close container="TD">
<open container="TD">
<text value="cell two"/>
<newline/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="FONT">
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,831 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Test 6"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
PRE { color:red; }
" value="</style>"/>
<content value="&#10;PRE { color:red; }&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<newline/>
<open container="H1">
<text value="Example 6: Table Stress Test"/>
<close container="H1">
<newline/>
<open container="PRE">
<text value="Resize document for maximum effect"/>
<close container="PRE">
<newline/>
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="H2">
<text value="Auto-width tables with spans nested 8 levels deep"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="red"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightblue"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightgreen"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="orange"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="red"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightblue"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<open container="TABLE">
<attr key="border" value="1"/>
<attr key="bgcolor" value="lightgreen"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<attr key="COLSPAN" value="2"/>
<attr key="ROWSPAN" value="2"/>
</open>
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<open container="TD">
<text value=" "/>
<text value="Cell, and stuff to test out table cell layout. This should be long enough for testing."/>
<close container="TD">
<open container="TD">
<text value="Cell"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="H2">
<text value="100% width tables nested 6 levels deep"/>
<close container="H2">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="yellow"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="Cell one"/>
<close container="TD">
<open container="TD">
<text value="Cell2"/>
<close container="TD">
<open container="TD">
<text value="Cell 3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="Cell 4"/>
<close container="TD">
<open container="TD">
<text value="Cell 5"/>
<close container="TD">
<open container="TD">
<text value="Cell 6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="lightgrey"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="1"/>
<close container="TD">
<open container="TD">
<text value="2"/>
<close container="TD">
<open container="TD">
<text value="3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="4"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="lightblue"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="1"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="red"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="1"/>
<close container="TD">
<open container="TD">
<text value="2"/>
<close container="TD">
<open container="TD">
<text value="3"/>
<close container="TD">
<open container="TD">
<text value="4"/>
<close container="TD">
<open container="TD">
<text value="5"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="6"/>
<close container="TD">
<open container="TD">
<text value="7"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="green"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="purple"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<newline/>
<open container="TABLE">
<attr key="BORDER" value=""/>
<attr key="WIDTH" value="100%"/>
<attr key="BGCOLOR" value="orange"/>
</open>
<open container="TBODY">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<text value="m"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="p"/>
<close container="TD">
<open container="TD">
<text value="q"/>
<close container="TD">
<open container="TD">
<text value="r"/>
<close container="TD">
<open container="TD">
<text value="s"/>
<close container="TD">
<open container="TD">
<text value="t"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="u"/>
<close container="TD">
<open container="TD">
<text value="v"/>
<close container="TD">
<open container="TD">
<text value="w"/>
<close container="TD">
<open container="TD">
<text value="x"/>
<close container="TD">
<open container="TD">
<text value="y"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="p"/>
<close container="TD">
<open container="TD">
<text value="q"/>
<close container="TD">
<open container="TD">
<text value="r"/>
<close container="TD">
<open container="TD">
<text value="s"/>
<close container="TD">
<open container="TD">
<text value="t"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="u"/>
<close container="TD">
<open container="TD">
<text value="v"/>
<close container="TD">
<open container="TD">
<text value="w"/>
<close container="TD">
<open container="TD">
<text value="x"/>
<close container="TD">
<open container="TD">
<text value="y"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="p"/>
<close container="TD">
<open container="TD">
<text value="q"/>
<close container="TD">
<open container="TD">
<text value="r"/>
<close container="TD">
<open container="TD">
<text value="s"/>
<close container="TD">
<open container="TD">
<text value="t"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="u"/>
<close container="TD">
<open container="TD">
<text value="v"/>
<close container="TD">
<open container="TD">
<text value="w"/>
<close container="TD">
<open container="TD">
<text value="x"/>
<close container="TD">
<open container="TD">
<text value="y"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<open container="TD">
<text value="0"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="a"/>
<close container="TD">
<open container="TD">
<text value="b"/>
<close container="TD">
<open container="TD">
<text value="c"/>
<close container="TD">
<open container="TD">
<text value="d"/>
<close container="TD">
<open container="TD">
<text value="e"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="f"/>
<close container="TD">
<open container="TD">
<text value="g"/>
<close container="TD">
<open container="TD">
<text value="h"/>
<close container="TD">
<open container="TD">
<text value="i"/>
<close container="TD">
<open container="TD">
<text value="j"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="k"/>
<close container="TD">
<open container="TD">
<text value="l"/>
<close container="TD">
<open container="TD">
<text value="m"/>
<close container="TD">
<open container="TD">
<text value="n"/>
<close container="TD">
<open container="TD">
<text value="o"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="3"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="4"/>
<close container="TD">
<open container="TD">
<text value="5"/>
<close container="TD">
<open container="TD">
<text value="6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="7"/>
<close container="TD">
<open container="TD">
<text value="8"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="6"/>
<close container="TD">
<close container="TR">
<open container="TR">
<open container="TD">
<text value="7"/>
<close container="TD">
<open container="TD">
<text value="8"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<entity value="bs"/>
<close container="TD">
<open container="TD">
<text value="8"/>
<close container="TD">
<open container="TD">
<text value="9"/>
<close container="TD">
<close container="TR">
<close container="TBODY">
<close container="TABLE">
<newline/>
<newline/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,23 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 7"/>
<close container="head">
<open container="BODY">
<newline/>
<open container="H1">
<text value="Example 7: A scaled animated image"/>
<close container="H1">
<newline/>
<leaf tag="IMG">
<attr key="SRC" value="Anieyes.gif"/>
<attr key="WIDTH" value="600"/>
<attr key="HEIGHT" value="600"/>
</leaf>
<newline/>
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,296 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 8"/>
<close container="head">
<open container="STYLE">
<leaf tag="STYLE">
<attr key="
INPUT#input1 {
font-size: large;
}
INPUT#input2 {
font-size: medium;
}
TEXTAREA#textarea1 {
width: 300px;
height: 120px;
font-size: large;
}
SELECT#select1 {
font-size: large;
}
" value="</style>"/>
<content value="&#10;INPUT#input1 {&#10; font-size: large;&#10;}&#10;INPUT#input2 {&#10; font-size: medium;&#10;}&#10;TEXTAREA#textarea1 {&#10; width: 300px;&#10;&#9;height: 120px;&#10; font-size: large;&#10;}&#10;SELECT#select1 {&#10;&#9;font-size: large;&#10;}&#10;"/>
</leaf>
<close container="head">
<open container="BODY">
<newline/>
<newline/>
<open container="H1">
<text value="Example 8: Forms"/>
<close container="H1">
<newline/>
<newline/>
<leaf tag="BR"/>
<newline/>
<open container="FORM">
<attr key="METHOD" value="GET"/>
<attr key="ACTION" value="http://search.yahoo.com/bin/search"/>
<attr key="NAME" value="searchform"/>
</open>
<newline/>
<open container="P">
<text value=" "/>
<text value="hey yahoo "/>
<close container="P">
<newline/>
<text value=" "/>
<leaf tag="INPUT">
<attr key="TYPE" value="TEXT"/>
<attr key="NAME" value="p"/>
<attr key="SIZE" value="15"/>
<attr key="MAXLENGTH" value="80"/>
</leaf>
<newline/>
<text value=" "/>
<leaf tag="INPUT">
<attr key="TYPE" value="submit"/>
<attr key="VALUE" value="Search"/>
</leaf>
<newline/>
<text value=" "/>
<leaf tag="INPUT">
<attr key="TYPE" value="HIDDEN"/>
<attr key="NAME" value="a"/>
<attr key="VALUE" value="n"/>
</leaf>
<newline/>
<close container="form">
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<open container="FORM">
<attr key="METHOD" value="POST"/>
<attr key="ACTION" value="http://www.mcp.com/cgi-bin/post-query"/>
<attr key="NAME" value="echo"/>
</open>
<newline/>
<text value=" "/>
<text value="password:"/>
<entity value="bs"/>
<entity value="bs"/>
<leaf tag="INPUT">
<attr key="TYPE" value="PASSWORD"/>
</leaf>
<text value=" "/>
<leaf tag="BR"/>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="rows" value="4"/>
<attr key="cols" value="10"/>
<attr key="value" value="a textarea"/>
<attr key="a textarea" value="</textarea>"/>
<content value="a textarea"/>
</leaf>
<newline/>
<entity value="bs"/>
<entity value="bs"/>
<newline/>
<leaf tag="TEXTAREA">
<attr key="name" value="a"/>
<attr key="id" value="textarea1"/>
<attr key="value" value="a textarea"/>
<attr key="another textarea
size, font set by css" value="</textarea>"/>
<content value="another textarea&#10;size, font set by css"/>
</leaf>
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<text value="a checkbox: "/>
<leaf tag="INPUT">
<attr key="type" value="checkbox"/>
<attr key="name" value="check1"/>
<attr key="checked" value=""/>
</leaf>
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
</leaf>
<text value=" "/>
<text value="radio1"/>
<newline/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="radio"/>
<attr key="name" value="group1"/>
<attr key="checked" value=""/>
</leaf>
<text value=" "/>
<text value="radio2"/>
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<open container="SELECT">
<attr key="name" value="select2"/>
<attr key="id" value="select1"/>
<attr key="size" value="4"/>
<attr key="multiple" value=""/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 3"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 4"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 5"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 6"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select1"/>
<attr key="size" value="2"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<open container="SELECT">
<attr key="name" value="select3"/>
<attr key="size" value="1"/>
</open>
<newline/>
<text value=" "/>
<open container="OPTION">
<attr key="selected" value=""/>
</open>
<text value="option 1"/>
<close container="OPTION">
<newline/>
<text value=" "/>
<open container="OPTION">
<text value="option 2"/>
<close container="OPTION">
<newline/>
<close container="SELECT">
<newline/>
<leaf tag="BR"/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="file"/>
<attr key="size" value="20"/>
<attr key="name" value="file"/>
<attr key="value" value="myfile"/>
</leaf>
<entity value="bs"/>
<entity value="bs"/>
<text value="file content not being sent yet"/>
<newline/>
<leaf tag="BR"/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="reset"/>
<attr key="name" value="reset"/>
<attr key="id" value="input2"/>
<attr key="value" value="RESET"/>
</leaf>
<text value=" "/>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="submit"/>
<attr key="id" value="input1"/>
<attr key="name" value="submit"/>
<attr key="value" value="SUBMIT"/>
</leaf>
<newline/>
<leaf tag="INPUT">
<attr key="type" value="image"/>
<attr key="src" value="raptor.jpg"/>
<attr key="width" value="50"/>
<attr key="height" value="50"/>
<attr key="name" value="imageSubmit"/>
</leaf>
<text value=" "/>
<text value="an image submit. For now, click twice."/>
<newline/>
<close container="form">
<newline/>
<leaf tag="BR"/>
<newline/>
<leaf tag="BR"/>
<newline/>
<text value="Additional tests -"/>
<entity value="bs"/>
<newline/>
<open container="A">
<attr key="href" value="test8siz.html"/>
</open>
<text value="sizing"/>
<close container="A">
<text value=","/>
<newline/>
<open container="A">
<attr key="href" value="test8sca.html"/>
</open>
<text value="scalability"/>
<close container="A">
<text value=","/>
<newline/>
<open container="A">
<attr key="href" value="test8tab.html"/>
</open>
<text value="tables(not working)"/>
<close container="A">
<newline/>
<newline/>
<newline/>
<close container="body">
<close container="html">
</begin>

Просмотреть файл

@ -0,0 +1,35 @@
<begin>
<open container="HTML">
<open container="TITLE">
<title value="Example 9: Frames"/>
<close container="head">
<open container="FRAMESET">
<attr key="rows" value="60%,40%"/>
</open>
<newline/>
<text value=" "/>
<leaf tag="FRAME">
<attr key="src" value="test9a.html"/>
</leaf>
<newline/>
<text value=" "/>
<open container="FRAMESET">
<attr key="cols" value="1*,2*"/>
</open>
<newline/>
<text value="&#9;"/>
<leaf tag="FRAME">
<attr key="src" value="test4.html"/>
</leaf>
<newline/>
<text value=" "/>
<leaf tag="FRAME">
<attr key="src" value="test5.html"/>
</leaf>
<newline/>
<text value=" "/>
<close container="FRAMESET">
<newline/>
<close container="FRAMESET">
<close container="html">
</begin>