Hacker News new | ask | show | jobs
by meric 4926 days ago
Looks like you've made sure any recursion only goes one deep? (Awesome)

http://scratchpad.io/5mqq98D51P

Every change forces a reload on the iframe. I wonder if there's a way to prevent that.

  <html>
    <body>
      <h1>Heading</h1>
      <iframe width="640" height="480" 
        src="http://scratchpad.io/5mqq98D51P">
      </iframe>
    </body>
  </html>
1 comments

That has nothing to do with Scratchpad, it's in the spec for HTML frames: "Infinite recursion is prevented. Any frame that attempts to assign as its SRC a URL used by any of its ancestors is treated as if it has no SRC URL at all (basically a blank frame)."

http://www.w3.org/TR/WD-frames-970331