From b1b59be5cbd62fba678b799f08f8b4adffbfefd3 Mon Sep 17 00:00:00 2001 From: Michael Rawlings Date: Thu, 4 Aug 2016 16:45:21 -0700 Subject: [PATCH] update docs --- docs/language-guide.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/language-guide.md b/docs/language-guide.md index 74520f15c..652352514 100644 --- a/docs/language-guide.md +++ b/docs/language-guide.md @@ -365,7 +365,7 @@ With a value of `false` for `active`, the output would be the following:
Hello
``` -_NOTE: If an attribute value expression evaluates to `null`, `false` or an empty string then the attribute is not included in the output._ +_NOTE: If an attribute value expression evaluates to `null` or `false` then the attribute is not included in the output._ A ternary condition can also be used: @@ -381,13 +381,12 @@ With a value of `false` for `active`, the output would be the following: ## Conditional Attributes -Marko supports conditional attributes when the value of an attribute is an expression. Marko also supports [HTML `boolean` attributes](https://html.spec.whatwg.org/#boolean-attributes) (e.g., ``) If an attribute value resolves to `null`, `undefined`, `false` or an empty string then the attribute will not be rendered. If an attribute value resolves to `true` then only the attribute name will rendered. +Marko supports conditional attributes when the value of an attribute is an expression. Marko also supports [HTML `boolean` attributes](https://html.spec.whatwg.org/#boolean-attributes) (e.g., ``) If an attribute value resolves to `null`, `undefined`, or `false` then the attribute will not be rendered. If an attribute value resolves to `true` then only the attribute name will rendered. For example, given the following data: ```javascript { - title: '', active: true, checked: false, disabled: true @@ -397,8 +396,6 @@ For example, given the following data: And the following template: ```xml -data.title/ -
@@ -407,8 +404,6 @@ And the following template: The output HTML will be the following: ```html - -