Informations sur: bug firefox 3

Publié par Francesco le 31/07/2008

Description

Mise en évidence d'un bug dans firefox 3

Code source (langage non précisé)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html>
  <head>
    <script languages="javascript">
      var i = 0;

      function incCounter()
      {
      i++;
      document.getElementById("bug").innerHTML = i;
      document.getElementById("check_counter").innerHTML = document.getElementById("bug").innerHTML;
      }

      function changeDisplay()
      {
      document.getElementById("bug").style.display = 'block';
      }
    </script>

  </head>
  <body>
    <table border="1">
      <tr>
	<td>counter value : <span id="check_counter">0</span></td>
	<td>counter value displayed in a
	textarea <br\><textarea cols="3" rows="1" id="bug">0</textarea></td>
      </tr>
    </table>
    <a href="javascript:incCounter();">increment counter</a>
    <a href="javascript:changeDisplay();">change display</a>

    <h1>bug explanation</h1>
    <p>
      First, if you click on the "increment counter" link, the counter
      in the textarea is correctly incremented.
    </p>

    <p>
      Then, if you click on the "change display" link, clicking on
      "increment counter" has no visible effect on the textarea. But
      the counter is correctly incremented, as we can see in the first
      cell of the table.
    </p>
  </body>
</html>
v6 © Computaid SPRL 2005-2012 - Tous droits réservés - Hébergé par eTigris - Page générée en 0,011 s - Crédits - Stats
1 connecté