diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/bugs/236539-1-ref.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
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.html | 129 |
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> |