I believe I've found a problem with the Safari DOM when updating the
text found within a layer. Although the layer is updated correctly
visually, the underlying DOM seems to grow larger with duplicated
elements rather than being reset with the new elements. I've created a
test page which demonstrates this issue...
http://www.qas.com/layer-test.htm
The page contains an initially empty <div> element within <form> tags.
When the page loads the div is populated with an input field and a
button using Dreamweaver's MM_setTextOfLayer function. The action on
the button is to update the div with some new form elements and alert
the form collection. The updated div contains a button which sets the
div back to its original state and again alerts the form collection.
This does exactly what you expect in IE, Firefox, NS6+, Opera, with
just the form elements visible on the page being alerted, but in Safari
the form collection just keeps growing as you move back and forth using
the buttons.
Is there another way to do this in Safari or is a bug with the program?
Thanks in advance for any help!
Tim