Nicolas Lempereur
716ceede16
[FIX] web_enterprise: kanban_state_selection ie
...
On IE (from 9.0 up to at least IE EDGE 14) we have this behavior
for the method serializeToString of XMLSerializer:
> (new XMLSerializer()).serializeToString($('<b>"</b>')[0])
'<b xmlns="http://www.w3.org/1999/xhtml ">"</b>'
> (new XMLSerializer()).serializeToString($('<b>"</b>')[0].firstChild)
'"'
Whilst browser such as chromium or firefox have:
> (new XMLSerializer()).serializeToString($('<b>"</b>')[0])
'<b xmlns="http://www.w3.org/1999/xhtml ">"</b>'
> (new XMLSerializer()).serializeToString($('<b>"</b>')[0].firstChild)
'"'
Hence for IE9 and over, if in a `<t t-extend/>` a `t-jquery`
sub-directive (without `t-operation`) is available, we can have
broken javascript if a " is transformed into an " at a unfortunate
location.
This commit favour node.data over XMLSerializer serializeToString to
avoid the possibility of this issue when a text node is processed.
opw-727283
2017-04-20 17:08:17 +02:00
Jeremy Kersten
4a698da8b3
[IMP] qweb: Allow to propagate value to variables outside the loop.
...
If the variable was existing outside the context of the ``foreach``,
the value is copied at the end of the foreach into the global context.
Fix #4461 - Q74531 - Q71486 - Q71675
2015-01-30 14:26:48 +01:00
Fabien Meghazi
75dfa9a356
[ADD] QWeb2: add support for operation='attributes' in a t-extend
...
Same syntax as server's position='attributes' on view inheritance
2014-10-16 10:25:57 +02:00
Xavier Morel
b9fdb93bec
[FIX] implementation of t-call's 0-index in qweb-js
...
Had expected regularity, had not noticed the Python version is really an
ignoble hack where the string "0" (exactly) is interpreted in a specific
manner when used in t-raw and format strings, *and nowhere else*.
Had special-cased the expression everywhere which broke e.g.
<t-set="xxx" t-value="0"/>. Reproduce Python behavior more closely,
and strongly consider swapping out both for something different e.g.
[[content]] or something like that, which doesn't cause problems in
Python but doesn't have to be so specially cased either.
2014-10-14 16:20:29 +02:00
Xavier Morel
d5e3d121e3
[ADD] qweb: call directive's body
...
* __content__ can't be used in Python implementation because safe_eval, so use
``0`` from Python implementation instead
* remove postfix from t-call tests because due to implementation details all
whitespace crap following a t-name is added to rendered template in Python
impl, and don't want to normalize whitespace.
2014-10-06 19:13:45 +02:00
Xavier Morel
494dcbd0e3
[IMP] qweb doc, tests
...
* document qweb based (mostly) on JS version
* convert JS qweb tests to (mostly) language-independent XML so they can be
used for JS and Python implementations
* add some more tests (e.g. precedence between t-value and body in t-set)
* remove ``t-import``
* fix parity in foreach(dict) (and rename some variables to make array and
object versions more similar)
2014-10-06 19:13:43 +02:00
Xavier Morel
bed6b01c53
[ADD] qweb-js: escf, rawf for parity with Python version
2014-10-06 19:13:42 +02:00
Xavier Morel
4fb49a67f3
[ADD] qweb-js: jinja-style interpolation pattern
2014-10-06 19:13:41 +02:00
Xavier Morel
35f5fb46e7
[IMP] qweb-js: reimplement string interpolation compilation as a single pass
2014-10-06 19:13:40 +02:00
Xavier Morel
9fe71a5d18
[IMP] update qweb-js tests
...
* latest qunit
* template loading (handle async)
* add format tests
2014-10-06 19:13:40 +02:00
Fabien Meghazi
4373f85773
[FIX] Do not self close empty elements that are not html void elements
...
bzr revid: fme@openerp.com-20140507121413-o7jqhexbm1wmitt6
2014-05-07 14:14:13 +02:00
Fabien Meghazi
84a840a38c
[REM] Removed useless QWeb t-escf and t-rawf
...
bzr revid: fme@openerp.com-20140115182018-d7q3e6elm6uqh0ox
2014-01-15 19:20:18 +01:00
Fabien Meghazi
3ddeaee79c
[MERGE] upstream
...
bzr revid: fme@openerp.com-20130814164422-l0h0ueue0fwk94uu
bzr revid: chm@openerp.com-20130828165815-a901l9gx66lj0pj1
bzr revid: fme@openerp.com-20130924125103-65bngr3rnm6k7u3a
2013-09-24 14:51:03 +02:00
niv-openerp
3210d02d8f
[REVERT] reverted 3812 because it's an incorrect way to upgrade an external dependency of OpenERP
...
bzr revid: nicolas.vanhoren@openerp.com-20130819092940-9vqh5036p7rf2azv
2013-08-19 11:29:40 +02:00
Fabien Meghazi
81e028b791
[ADD] QWeb: add async api (backward compatible)
...
bzr revid: fme@openerp.com-20130814164322-cny24d0i6tg4ftvn
2013-08-14 18:43:22 +02:00
niv-openerp
c8142aa421
Updated qweb
...
bzr revid: nicolas.vanhoren@openerp.com-20130731141139-7ssepci9vxnp9hpf
2013-07-31 16:11:39 +02:00
Fabien Meghazi
173a8b9d4d
[FIX] QWeb: purge compiled template when template is added
...
bzr revid: fme@openerp.com-20121206132115-6fyedomrrchrxc43
2012-12-06 14:21:15 +01:00
Christophe Simonis
56ee9f011b
[FIX] qweb: <t t-log> action was generating invalid code
...
bzr revid: chs@openerp.com-20121121155001-7gwb3w3mxqevxibm
2012-11-21 16:50:01 +01:00
Fabien Meghazi
8a7ccd3c76
[ADD] Add 'window' in QWeb reserved words
...
bzr revid: fme@openerp.com-20120925141558-zlj6f328oya3z5oy
2012-09-25 16:15:58 +02:00
Fabien Meghazi
f2b5d602bc
[ADD] QWeb2: added 'void' reserved keyword
...
bzr revid: fme@openerp.com-20120521114038-tz48ac3cgg8zjmti
2012-05-21 13:40:38 +02:00
Fabien Meghazi
f12e598b59
[FIX] QWeb2: Array-like character access in String is not supported in IE<8
...
bzr revid: fme@openerp.com-20120213144234-dtdw5e8ho4x85frj
2012-02-13 15:42:34 +01:00
Fabien Meghazi
ce65bc3ac3
[IMP] Add QWeb preprocess_node callback. Translate @label, @title and @alt attributes in web client
...
bzr revid: fme@openerp.com-20120207132901-ifwnfj6c4mp451tl
2012-02-07 14:29:01 +01:00
Fabien Meghazi
8abe9402e2
[REM] QWeb: removed xpath support
...
bzr revid: fme@openerp.com-20120201132217-h2i9a3g082i9ui9y
2012-02-01 14:22:17 +01:00
Fabien Meghazi
ab447a4f13
[FIX] Use childnodes and not the whole extend node
...
bzr revid: fme@openerp.com-20120201124822-xo1msj0ou09o73uh
2012-02-01 13:48:22 +01:00
Fabien Meghazi
0839b0e4ee
[FIX] QWeb template inheritance done right
...
bzr revid: fme@openerp.com-20120201122926-poh3q2157ra9tzjd
2012-02-01 13:29:26 +01:00
Xavier Morel
a4a8e0eee1
[IMP] avoid losing error message when DOM parser fails to initialize in MSIE
...
bzr revid: xmo@openerp.com-20120125160949-5pr4h7aquohykdn2
2012-01-25 17:09:49 +01:00
Xavier Morel
00af91057f
[FIX] Internet Explorer can't CDATA in HTML documents, convert XML CDATA sections into TEXT html sections
...
bzr revid: xmo@openerp.com-20120118112451-f7sbhzalhl2vapmc
2012-01-18 12:24:51 +01:00
Xavier Morel
80cc9c990f
[FIX] XML serialization for MSIE8 (not by much, but now it kinda works again)
...
bzr revid: xmo@openerp.com-20120118105751-2jnwcilwc5p6kgth
2012-01-18 11:57:51 +01:00
Xavier Morel
45371d6e9c
[IMP] qweb: switch is shorter than inline object + dispatch
...
bzr revid: xmo@openerp.com-20120118105720-g0zntwfqnxh5j4gf
2012-01-18 11:57:20 +01:00
Xavier Morel
0694c25836
[FIX] convert XML documents to HTML in MSIE so jQuery does not bork its parsing
...
done via DOM traversal, slow as shit and currently drops half the attributes
bzr revid: xmo@openerp.com-20120118104015-ot102e8yniqjd4bf
2012-01-18 11:40:15 +01:00
Fabien Meghazi
152f92916b
[FIX] QWeb: well... ahem... This is embarassing...
...
bzr revid: fme@openerp.com-20120117215949-36uxh7r1izvah35l
2012-01-17 22:59:49 +01:00
Fabien Meghazi
ad3604737d
[FIX] Fix QWeb default dict extend
...
bzr revid: fme@openerp.com-20120117215542-2j31xq9iovu2z0cv
2012-01-17 22:55:42 +01:00
Fabien Meghazi
ebb62abe7a
[FIX] QWeb: fix 2 unit tests
...
bzr revid: fme@openerp.com-20120117212234-u4wo2m9c3ew2t6ej
2012-01-17 22:22:34 +01:00
Fabien Meghazi
425b6b4b33
[FIX] QWeb: Internet Explorer DOM converts tags to uppercase
...
bzr revid: fme@openerp.com-20120117135958-gv2iv4ixomqzcnny
2012-01-17 14:59:58 +01:00
Fabien Meghazi
a6a069a5db
[FIX] QWeb inheritance broken in MSIE (8, 9, 10), client does not work at all
...
Could not test on IE 7 neither IE 10
IE 8 still crashes but for another error
lp bug: https://launchpad.net/bugs/891132 fixed
bzr revid: fme@openerp.com-20111129232025-b49gr4k2ngnqahbt
2011-11-30 00:20:25 +01:00
Fabien Meghazi
f386b74eff
[IMP] QWeb2: add 'console' in reserved words
...
bzr revid: fme@openerp.com-20111116164210-ktn35gjb703kdrek
2011-11-16 17:42:10 +01:00
Fabien Meghazi
b4cb0ae477
[IMP] QWeb2: do not swallow stack trace with try,catch in debug mode
...
bzr revid: fme@openerp.com-20111020104218-q0qe91v99hz8a4yq
2011-10-20 12:42:18 +02:00
Fabien Meghazi
8e34b97b09
[ADD] Add format_text_node callback in qweb instance. Will be used for translations
...
bzr revid: fme@openerp.com-20111020091527-wxnw5kfpucvlncif
2011-10-20 11:15:27 +02:00
Fabien Meghazi
6c7c08a62f
[ADD] Add debug url hack for qweb xhr templates
...
bzr revid: fme@openerp.com-20110912090727-hv3bslofmcpj06ld
2011-09-12 11:07:27 +02:00
Fabien Meghazi
3908e0eb88
[ADD] QWeb2: add default dict
...
bzr revid: fme@openerp.com-20110907081633-vhuaf55e1dxxja2z
2011-09-07 10:16:33 +02:00
Antony Lesuisse
bedfc48dcf
rename base into web part1
...
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
2011-09-05 13:03:09 +02:00