- From: Julian Reschke <julian.reschke@gmx.de>
- Date: Sat, 16 Jan 2010 10:39:28 +0100
- To: Ian Hickson <ian@hixie.ch>
- CC: Karl Dubost <karl+w3c@la-grange.net>, public-html@w3.org
Ian Hickson wrote: > On Fri, 15 Jan 2010, Karl Dubost wrote: >> Le 12 janv. 2010 à 20:58, Ian Hickson a écrit : >>> Maciej, I will be adding a specification for the oft-discussed doc="" >>> attribute on <iframe> to the HTML5 spec in the near future. >> Would it be possible to have a markup example? (I mean the content of the attribute). > > The details depend on ongoing discussions, but e.g.: > > <iframe seamless sandbox="allow-scripts allow-forms" doc=" > Read my blog! > <a href='#' onclick='alert(document.cookie)'>Click here</a> > "></iframe> I thought markup in attributes was a super-anti-pattern. How about adding one level of indirection? <iframe seamless sandbox="allow-scripts allow-forms" doc="#x"></iframe> ... <span id=x><a href='#' onclick='alert(document.cookie)'>Click here</a></span> BR, Julian
Received on Saturday, 16 January 2010 09:40:13 UTC