mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
new regression test not affecting the build.
This commit is contained in:
parent
004e00c139
commit
9f9804f7f1
56
layout/html/tests/table/interactive/bug8398.html
Normal file
56
layout/html/tests/table/interactive/bug8398.html
Normal file
@ -0,0 +1,56 @@
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Show/Hide</title>
|
||||
<script type="text/javascript">
|
||||
|
||||
/////////////////////////////////////////////
|
||||
function ShowHide()
|
||||
{
|
||||
statusCell = GetTextCell("Cell_0");
|
||||
statusCell.data = "Hello";
|
||||
}
|
||||
/////////////////////////////////////////////
|
||||
function GetTextCell(aName)
|
||||
{
|
||||
var node = document.getElementById(aName);
|
||||
if (node != null)
|
||||
{
|
||||
if (node.hasChildNodes)
|
||||
{
|
||||
var children = node.childNodes;
|
||||
var length = children.length;
|
||||
var count = 0;
|
||||
|
||||
while(count < length)
|
||||
{
|
||||
child = children[count];
|
||||
if (child.nodeType == 3)
|
||||
{
|
||||
dump("found kid\n");
|
||||
return child;
|
||||
}
|
||||
count++
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
The caption should be at the bottom
|
||||
<BR>
|
||||
<body>
|
||||
<form method="POST" name="myform" action="">
|
||||
<input type="button" value="Show/Hide" onclick="ShowHide()">
|
||||
<table border="2">
|
||||
<caption align="bottom">Caption text</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td id="Cell_0">
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user