зеркало из https://github.com/mozilla/gecko-dev.git
297 строки
8.0 KiB
Plaintext
297 строки
8.0 KiB
Plaintext
<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=" INPUT#input1 { font-size: large; } INPUT#input2 { font-size: medium; } TEXTAREA#textarea1 { width: 300px; 	height: 120px; font-size: large; } SELECT#select1 { 	font-size: large; } "/>
|
|
</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 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>
|