From 9ac6adb0797dd2915a033e30f304b7bbff2337e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Garc=C3=ADa?= Date: Mon, 15 Oct 2018 18:51:49 +0200 Subject: [PATCH 1/2] Add strict binding parser note --- app/2.0/docs/devguide/data-binding.md | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/app/2.0/docs/devguide/data-binding.md b/app/2.0/docs/devguide/data-binding.md index a3b624b68f..c7c43d2848 100644 --- a/app/2.0/docs/devguide/data-binding.md +++ b/app/2.0/docs/devguide/data-binding.md @@ -697,6 +697,44 @@ to listen for `property-changed` events. The following constructions are equiva ``` +## Strict binding parser + +The default implementation of the binding parser uses a regular expression, due to its better +performance. However, since it uses a white-list of allowed characters, some characters won't be +accepted as valid within a binding expression. + +There's a strict binding parser implementation, extracted in a separate mixin, which uses a +state-machine instead of a regular expression. This implementation is able to handle all possible +cases, although it's slightly less performant. + +Example: { .caption } + +``` + + + + + + + + +``` ## Moved sections From 2291ce50e54d2935a9a815a409094e2d6ef93546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Garc=C3=ADa?= Date: Mon, 15 Oct 2018 19:15:57 +0200 Subject: [PATCH 2/2] Modify example based on issue Polymer/polymer#4723 --- app/2.0/docs/devguide/data-binding.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/2.0/docs/devguide/data-binding.md b/app/2.0/docs/devguide/data-binding.md index c7c43d2848..d7caf283bd 100644 --- a/app/2.0/docs/devguide/data-binding.md +++ b/app/2.0/docs/devguide/data-binding.md @@ -715,7 +715,7 @@ Example: { .caption }