See test case.
Created attachment 6949 [details]
this test starts with a new text field with visibility:hidden and a value of "Test Passed". In the onload handler, the test field becomes visible, but the value doesn't show up.
Created attachment 6965 [details]
Comment on attachment 6965 [details]
The shadowdiv may have a depth > 1, use traverseNextNode instead of nextSibling
Created attachment 6966 [details]
Good call, Justin. This patch uses traverseNextNode.
Comment on attachment 6966 [details]
Hyatt reviewed this.