summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/236539-1-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /layout/reftests/bugs/236539-1-ref.html
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/bugs/236539-1-ref.html')
-rw-r--r--layout/reftests/bugs/236539-1-ref.html129
1 files changed, 129 insertions, 0 deletions
diff --git a/layout/reftests/bugs/236539-1-ref.html b/layout/reftests/bugs/236539-1-ref.html
new file mode 100644
index 0000000000..50b65d74a1
--- /dev/null
+++ b/layout/reftests/bugs/236539-1-ref.html
@@ -0,0 +1,129 @@
+<html>
+<head>
+<script type="text/javascript">
+var NumLine = 0
+
+function maj(IDLine)
+{
+
+var newtr = document.createElement("tr")
+newtr.setAttribute("id","tr"+IDLine)
+
+
+var newtdselect = document.createElement("td")
+var newselect = document.createElement("select")
+newselect.setAttribute("id","HypothRank_"+IDLine)
+newselect.setAttribute("name","HypothRank_"+IDLine)
+
+for (i=1;i<=IDLine;i++)
+ {
+
+ var newoption = document.createElement("option")
+ newoption.setAttribute("id",i)
+ newoption.setAttribute("class","classoption1")
+ if (i == IDLine)
+ {
+ newoption.setAttribute("selected","selected")
+ }
+ var newtxt = document.createTextNode(i)
+ newoption.appendChild(newtxt)
+
+ newselect.appendChild(newoption)
+ }
+
+if (i>2)
+ {
+ for (j=1;j<=i-2;j++)
+ {
+ var newoption = document.createElement("option")
+ newoption.setAttribute("class","classoption1")
+ newoption.setAttribute("id",IDLine)
+ var newtxt = document.createTextNode(i-1)
+ newoption.appendChild(newtxt)
+ document.getElementById("HypothRank_"+j).appendChild(newoption)
+ }
+ }
+
+newtdselect.appendChild(newselect)
+newtr.appendChild(newtdselect)
+
+document.getElementById('letbody').appendChild(newtr)
+
+NumLine++
+}
+
+
+
+function DeleteLine(IDLine)
+{
+for (i=1;i<=NumLine;i++)
+
+ {
+ if (i != IDLine)
+ {
+ noeud = document.getElementById("HypothRank_"+i)[IDLine-1]
+ document.getElementById("HypothRank_"+i).removeChild(noeud)
+ for (j=0;j<=NumLine-2;j++)
+ {
+ noeud = document.getElementById("HypothRank_"+i)[j]
+
+ k=j+1
+ noeud.setAttribute("id",k)
+
+ if (k == NumLine)
+ {
+ noeud.setAttribute("selected","selected")
+ }
+ depart = 0
+ taille = noeud.firstChild.nodeValue.length
+ document.getElementById("HypothRank_"+i)[j].firstChild.replaceData(depart,taille,j+1)
+ }
+ }
+ }
+
+
+noeud = document.getElementById('tr'+IDLine)
+document.getElementById('letbody').removeChild(noeud)
+
+NumLine--
+
+for (i=IDLine;i<=NumLine;i++)
+ {
+ k=i+1
+ noeud = document.getElementById("tr"+k)
+ noeud.setAttribute("id","tr"+i)
+
+ noeud = document.getElementById("HypothRank_"+k)
+ noeud.setAttribute("id","HypothRank_"+i)
+ noeud.setAttribute("name","HypothRank_"+i)
+
+ noeud = document.getElementById("Hypoth_"+k)
+ noeud.setAttribute("name","Hypoth_"+i)
+ noeud.setAttribute("id","Hypoth_"+i)
+ }
+
+
+}
+
+</script>
+</head>
+
+<body>
+<form>
+ <table border="1" id="latable">
+ <thead></thead>
+ <tfoot></tfoot>
+ <tbody id="letbody"></tbody>
+ </table>
+</form>
+
+<script>
+ document.body.offsetWidth;
+ maj(NumLine+1);
+ document.body.offsetWidth;
+ maj(NumLine+1);
+ document.body.offsetWidth;
+</script>
+
+</body>
+</html>