[Webkit-unassigned] [Bug 156626] Would like a way to prevent user-controlled markup from breaking out of an element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 15 08:30:34 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=156626

--- Comment #1 from Adam Roben (:aroben) <aroben at webkit.org> ---
Some strawman proposals:

<untrusted srcdoc="<p>HTML goes here</p>">

This is similar to <iframe srcdoc>. We'd of course have to ensure the attribute value does not contain any quotes on the server side.

<untrusted>
<p>HTML goes here</p>
</untrusted>

For this one to work, the parsing would need to be similar to <textarea> where it consumes all characters until the next instance of "</untrusted>". And of course we'd have to ensure to remove "</untrusted>" from the content itself on the server side.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160415/76fbea30/attachment-0001.html>


More information about the webkit-unassigned mailing list