Adding the following snippet to a Seaside render method breaks the generated html because the closing script tag in the jQuery append expression is not properly escaped.
html anchor script:
((html jQuery this closest: 'div') append: [ :r |
r div script: (html jQuery this
on: 'click'
selector: '.class'
do: (JSStream on: 'alert(''nested script''')) ])
Adding the following snippet to a Seaside render method breaks the generated html because the closing script tag in the jQuery append expression is not properly escaped.
In Seaside 3.0, the method https://github.com/SeasideSt/Seaside/blob/61f25aa0e8b820cf1e3d554ef8bcceb12e307233/Javascript-Core.package/JSStream.class/class/encodeString.on..st used to contain code that escapes closing of nested tags:
https://github.com/seasidest/seaside/issues/726, the commit comment that removed this from Seaside 3.0 code mentions: