Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(296)

Issue 6554048: Implement non-simple event handler attributes in ES5 mode. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by kpreid2
Modified:
14 years, 1 month ago
Reviewers:
felix8a, metaweta
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

When Domado meets an event handler attribute value which is not 'simple', it now uses cajaVM.compileExpr (if available, i.e. if in ES5 mode) to compile the handler. Fixes issue 1436, "domado needs better support for onevent attributes".

Patch Set 1 #

Total comments: 9

Patch Set 2 : Implement non-simple event handler attributes in ES5 mode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -22 lines) Patch
M src/com/google/caja/plugin/domado.js View 1 1 chunk +27 lines, -13 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-dom-guest.html View 1 1 chunk +4 lines, -4 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-events-guest.html View 1 chunk +10 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-language-guest.html View 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 9
kpreid2
14 years, 1 month ago (2012-09-20 19:15:26 UTC) #1
metaweta
https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js#newcode1755 src/com/google/caja/plugin/domado.js:1755: if ((match = value.match(SIMPLE_HANDLER_PATTERN))) { Is there a reason ...
14 years, 1 month ago (2012-09-20 20:50:06 UTC) #2
felix8a
https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js#newcode1755 src/com/google/caja/plugin/domado.js:1755: if ((match = value.match(SIMPLE_HANDLER_PATTERN))) { On 2012/09/20 20:50:06, metaweta ...
14 years, 1 month ago (2012-09-20 20:58:00 UTC) #3
metaweta
On 2012/09/20 20:58:00, felix8a wrote: > https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js > File src/com/google/caja/plugin/domado.js (right): > > https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js#newcode1755 > ...
14 years, 1 month ago (2012-09-20 21:08:58 UTC) #4
kpreid2
https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js#newcode1755 src/com/google/caja/plugin/domado.js:1755: if ((match = value.match(SIMPLE_HANDLER_PATTERN))) { On 2012/09/20 20:50:06, metaweta ...
14 years, 1 month ago (2012-09-20 21:10:47 UTC) #5
felix8a
some minor comments below, otherwise LGTM. I have vague qualms about not having a testcase ...
14 years, 1 month ago (2012-09-20 21:26:40 UTC) #6
kpreid2
Patch Set 2 incorporates your comments. https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/6554048/diff/1/src/com/google/caja/plugin/domado.js#newcode1755 src/com/google/caja/plugin/domado.js:1755: if ((match = ...
14 years, 1 month ago (2012-09-20 21:53:30 UTC) #7
felix8a
lgtm
14 years, 1 month ago (2012-09-20 21:58:46 UTC) #8
kpreid2
14 years, 1 month ago (2012-09-20 22:08:27 UTC) #9
@r5059
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b