Tuesday, November 10, 2009

Nice Firefox bug


Take the following HTML:

[body onload="document.getElementById('a').innerHTML = '[input type=\'text\'/]';"]
[div id="a"][/div]
[input type="text"/]

(of course replace "[" with "<" and "]" with ">")

Open that in Firefox. Write something in the first input and press F5... see what happens... the value you just entered is now in the second input!
Add as many inputs and the shifting still occurs on all of them...