diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2020-02-21 09:46:12 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2020-02-24 15:32:19 +0000 |
| commit | 9256492f105719df2756524a10e0659c991bb810 (patch) | |
| tree | 1b9a370b550449105ab5df2e5df5235cdf8e0561 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 0e77b3d16a2e1e980deae3c3ea06ed44c3536d28 (diff) | |
[FIX] qweb2: ignore comments between branching directives
Have a template of that form:
```xml
<t t-if=""/>
<!-- Comment -->
<t t-elif=""/>
```
Before this commit, both python and JS crashed because any type of node
between branching directive was forbidden
After this commit, Comments are just ignored and removed, while actual
template nodes are still forbidden between branching directives
There is no crash anymore
closes odoo/odoo#45899
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
