зеркало из https://github.com/mozilla/pjs.git
26 строки
726 B
HTML
26 строки
726 B
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML>
|
|
<HEAD><TITLE>test</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<OL type=A><LI>first list item</OL>
|
|
<OL type=a><LI>first list item</OL>
|
|
<OL type=I><LI>first list item</UL>
|
|
<OL type=i><LI>first list item</UL>
|
|
<OL type=upper-alpha><LI>first list item</OL>
|
|
<OL type=lower-alpha><LI>first list item</OL>
|
|
<OL type=upper-roman><LI>first list item</UL>
|
|
<OL type=lower-roman><LI>first list item</UL>
|
|
<SCRIPT TYPE="text/javascript">
|
|
var body=document.firstChild.childNodes.item(1);
|
|
var bodyKids = body.childNodes;
|
|
for (i = 0; i < bodyKids.length; i++) {
|
|
var it = bodyKids.item(i);
|
|
if (it.nodeType == Node.ELEMENT_NODE) {
|
|
document.writeln(it.type);
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
</BODY>
|
|
</HTML>
|