Tuesday, November 10, 2009

Nice Firefox bug

Hi,

Take the following HTML:


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

(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...