Browse Source

update boolean attributes link (#19216)

Co-authored-by: Bizley <pawel@positive.codes>
tags/2.0.45
Ihor Sychevskyi 3 years ago committed by GitHub
parent
commit
2861121a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/guide-es/helper-html.md
  2. 2
      docs/guide-fr/helper-html.md
  3. 2
      docs/guide-ja/helper-html.md
  4. 2
      docs/guide-ru/helper-html.md
  5. 2
      docs/guide-zh-CN/helper-html.md
  6. 2
      docs/guide/helper-html.md

2
docs/guide-es/helper-html.md

@ -45,7 +45,7 @@ gestión adicional que se debe conocer:
- Si un valor es `null`, el correspondiente atributo no se renderizará.
- Los atributos cuyos valores son de tipo booleano serán tratados como
[atributos booleanos](http://www.w3.org/TR/html5/infrastructure.html#boolean-attributes).
[atributos booleanos](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes).
- Los valores de los atributos se codificarán en HTML usando [[yii\helpers\Html::encode()|Html::encode()]].
- El atributo "data" puede recibir un array. En este caso, se "expandirá" y se renderizará una lista de atributos
`data` ej. `'data' => ['id' => 1, 'name' => 'yii']` se convierte en `data-id="1" data-name="yii"`.

2
docs/guide-fr/helper-html.md

@ -36,7 +36,7 @@ Des options sont utilisées dans de nombreuses méthodes de la classe assistante
- Si une valeur est `null`, l'attribut correspondant n'est pas rendu.
- Les attributs du type booléen sont traités comme des
[attributs booléens ](http://www.w3.org/TR/html5/infrastructure.html#boolean-attributes).
[attributs booléens ](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes).
- Les valeurs des attributs sont encodés HTML à l'aide de la méthode [[yii\helpers\Html::encode()|Html::encode()]].
- Si la valeur d'un attribut est un tableau, il est géré comme suit :

2
docs/guide-ja/helper-html.md

@ -41,7 +41,7 @@ Yii はそのような手助けを Html ヘルパの形式で提供します。
その全ての場合において、いくつか追加の処理がなされることを知っておいてください。
- 値が `null` である場合は、対応する属性はレンダリングされません。
- 値が真偽値である属性は、[真偽値属性 (boolean attributes)](http://www.w3.org/TR/html5/infrastructure.html#boolean-attributes)
- 値が真偽値である属性は、[真偽値属性 (boolean attributes)](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes)
として扱われます。
- 属性の値は [[yii\helpers\Html::encode()|Html::encode()]] を使って HTML エンコードされます。
- 属性の値が配列である場合は、次のように処理されます。

2
docs/guide-ru/helper-html.md

@ -45,7 +45,7 @@ Html-помощник
- Если значение равно `null`, соответствующий атрибут не будет выведен.
- Атрибуты, значения которых имеют тип boolean, будут интерпретированы как
[логические атрибуты](http://www.w3.org/TR/html5/infrastructure.html#boolean-attributes).
[логические атрибуты](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes).
- Значения атрибутов будут экранированы с использованием метода [[yii\helpers\Html::encode()|Html::encode()]].
- Если в качестве значения атрибута передан массив, он будет обработан следующим образом:

2
docs/guide-zh-CN/helper-html.md

@ -42,7 +42,7 @@ Yii 提供了一系列的静态方法来操作标签配置并基于这些配置
- 如果一个值为 null ,那么对应的属性将不会被渲染。
- 如果是布尔类型的值的属性,将会被当做
[布尔属性](http://www.w3.org/TR/html5/infrastructure.html#boolean-attributes) 来处理。
[布尔属性](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes) 来处理。
- 属性的值将会用 [[yii\helpers\Html::encode()|Html::encode()]] 方法进行 HTML 转码处理。
- 如果一个属性的值是一个数组,那么它将会被如下处理:

2
docs/guide/helper-html.md

@ -42,7 +42,7 @@ know about:
- If a value is `null`, the corresponding attribute will not be rendered.
- Attributes whose values are of boolean type will be treated as
[boolean attributes](http://www.w3.org/TR/html5/infrastructure.html#boolean-attributes).
[boolean attributes](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributess).
- The values of attributes will be HTML-encoded using [[yii\helpers\Html::encode()|Html::encode()]].
- If the value of an attribute is an array, it will be handled as follows:

Loading…
Cancel
Save