W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] suggestion limited context

From: Andri Sævar Sigríksson <ass57@hi.is>
Date: Thu, 23 Feb 2012 20:36:44 -0000 (GMT)
Message-ID: <56c52084ae3dbdff6b29ae864322e841.squirrel@webmail.hi.is>
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
Received on Thursday, 23 February 2012 12:36:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC