[whatwg] suggestion limited context

Andri Sævar Sigríksson ass57 at hi.is
Thu Feb 23 12:36:44 PST 2012


i would like to suggest a limited context
for embedding JavaScript/html  in a websites

i would suggest having few sets of  profiles

and maybe user/website-designer defined

the syntax may be something like this

limited
{

////code

}

i don't think this would be difficult to implement
web-browsers  simply  needs to ignore things that would not be allowed

example

limited
{
<script>
alert("Hello! I am an alert box!");
</script>

<canvas id="example" width="200" height="200">

}

in this instance the web-browser  would ignore alert


i think its every reason to implement this
a lot of websites that allow embeding
only allow flash or very limit html like img or <a href="url">Link text</a>
simply because allowing any more that would subject the website to unwanted
manipulation and hacks

but with  this limited context would allow websites
allow embedding more freely for JavaScript/html without the risk




More information about the whatwg mailing list