From 210c0fea38769155e1327c491347d560401e7188 Mon Sep 17 00:00:00 2001 From: Efthymis Sarmpanis Date: Wed, 27 Dec 2017 18:34:02 +0200 Subject: [PATCH] Don't include Bindings to element attributes for the proper value of options --- src/parse/state/tag.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parse/state/tag.ts b/src/parse/state/tag.ts index 1e39a51059..043825daa7 100644 --- a/src/parse/state/tag.ts +++ b/src/parse/state/tag.ts @@ -182,7 +182,9 @@ export default function tag(parser: Parser) { let attribute; while ((attribute = readAttribute(parser, uniqueNames))) { - element.attributes.push(attribute); + if (attribute.type !== 'Binding' || parser.bind) { + element.attributes.push(attribute); + } parser.allowWhitespace(); }