xyok

HTML 嵌入 iframe,并在 iframe 中引用自己,为什么没有循环递归出现

  •  
  •   xyok · May 13, 2015 via Smartisan T1 · 1828 views
    This topic created in 4115 days ago, the information mentioned may be changed or developed.
    闲着无聊,试了一下,chrome能解析出两个页面,IE和Firefox只有一个
    1 replies    2015-05-13 22:20:17 +08:00
    yksoft1
        1
    yksoft1  
       May 13, 2015   ❤️ 1
    http://www.w3.org/TR/WD-frames-970331
    Infinite Recursion

    It is possible to design a FRAMESET that recurses infinitely, stacking the same FRAMESET inside itself until a machine runs out of memory. Consider this example:

    <FRAMESET rows="50%,50%">
    <FRAME src="parent_url">
    <FRAME>
    </FRAMESET>

    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). This doesn't prevent all malicious documents, but it eliminates a troublesome class of them.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1259 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:43 · PVG 07:43 · LAX 16:43 · JFK 19:43
    ♥ Do have faith in what you're doing.