<body>
<div banScript id="editer">
<!-- 蹇界暐鍐呴儴js鑴氭湰杩愯闃叉xss -->
<!-- ignore inside JS run -->
<p>
<img src=a onerror=alert('xss')>
<script>alert('xss,xss,xss,xss,xss,xss,xss,xss,xss,xss')</script>
</p>
</div>
</body>
This question appears to be about browsers; this repo is for the specification for the javascript language.
I鈥檓 not aware of the ability to ban inline scripts inside a specific element; although CSP can allow you to ban inline scripts on the whole page. You may be looking for https://html.spec.whatwg.org/
Most helpful comment
This question appears to be about browsers; this repo is for the specification for the javascript language.
I鈥檓 not aware of the ability to ban inline scripts inside a specific element; although CSP can allow you to ban inline scripts on the whole page. You may be looking for https://html.spec.whatwg.org/