<rdar://problem/3542781> I have created a page which contains a div with the display set to none. Inside of the div is a script block conatining javascript which will later be written into the contents of an iframe. When the user types in the textbox on the page I create an iframe and write the contents of the div described above, which includes javascript to provide functinality in the iframe. The problem is, when the contents of the div are written to the iframe using theiframe.document.write(divcontents) the > caracter is escaped to look like &lt; thus causing any value comparison to fail such as a for(i = 0; i < thevalue; i++) to fail.
Created attachment 3005 [details] test case
This test case needs some cleaning up, but it was what was originally attached to the bug.
Created attachment 3128 [details] test case created by vicki to try to figure out what the bug is here
I used the code originally attached and the description of the problem to make a reduced test case. As far as I can see, this is working as expected. In my test case, the script that I wrote to the iframe has a for loop with a ">" as you described. This for loop, which puts up an alert, seems to be working just fine. Could you clarify what the bug is here? Please feel free to make modifications to the test case that I attached (iframe-test.html). I've assigned the Radar bug back to the originator for comment.
This report doesn't contain enough information to work on it, closing as INVALID.