From 23ba7dee27ca4e7acdfc758b7c249b8542e618a7 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Sat, 31 Mar 2018 16:02:01 +0200 Subject: [PATCH] Update types --- types/lib/mixins/property-effects.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/types/lib/mixins/property-effects.d.ts b/types/lib/mixins/property-effects.d.ts index 572674abe3..52aec3a068 100644 --- a/types/lib/mixins/property-effects.d.ts +++ b/types/lib/mixins/property-effects.d.ts @@ -257,6 +257,17 @@ declare namespace Polymer { * - Inline computed method (supports negation): * `[[compute(a, 'literal', b)]]`, `[[!compute(a, 'literal', b)]]` * + * The default implementation uses a regular expression for best + * performance. However, the regular expression uses a white-list of + * allowed characters in a data-binding, which causes problems for + * data-bindings that do use characters not in this white-list. + * + * Instead of updating the white-list with all allowed characters, + * there is a StrictBindingParser (see lib/mixins/strict-binding-parser) + * that uses a state machine instead. This state machine is able to handle + * all characters. However, it is slightly less performant, therefore we + * extracted it into a separate optional mixin. + * * @param text Text to parse from attribute or textContent * @param templateInfo Current template metadata * @returns Array of binding part metadata