diff --git a/latte/cs/html-attributes.texy b/latte/cs/html-attributes.texy index 2ad5566d57..2be568a5d6 100644 --- a/latte/cs/html-attributes.texy +++ b/latte/cs/html-attributes.texy @@ -46,6 +46,8 @@ Pokud používáte filtry, mějte na paměti, že obvykle převádějí `null` n
``` +Stejné pravidlo platí i pro URL atributy jako `href` nebo `src`. Latte [kontroluje jejich hodnotu |safety-first#Kontrola odkazů] kvůli nebezpečným adresám, ale `null` nechává být, takže `` s `$link` nastaveným na `null` se vypíše jako prosté ``. Dřívější verze zde vypisovaly `href=""`, čímž se z elementu stal odkaz na aktuální stránku. .{data-version:3.2.0} + Třídy (Classes) =============== diff --git a/latte/cs/safety-first.texy b/latte/cs/safety-first.texy index e1fa72c563..3e176df28d 100644 --- a/latte/cs/safety-first.texy +++ b/latte/cs/safety-first.texy @@ -374,6 +374,8 @@ Vypíše: klikni ``` +Pokud je proměnná `null`, atribut se vůbec nevypíše, stejně jako [u ostatních atributů |html-attributes#Hodnoty null]. .{data-version:3.2.0} + Kontrola se dá vypnout pomocí filtru [nocheck |filters#nocheck]. diff --git a/latte/en/html-attributes.texy b/latte/en/html-attributes.texy index eed748937e..64dc0b6c2b 100644 --- a/latte/en/html-attributes.texy +++ b/latte/en/html-attributes.texy @@ -46,6 +46,8 @@ If you use filters, keep in mind that they usually convert `null` to a string (e ``` +The same rule applies to URL attributes like `href` or `src`. Latte [checks their value |safety-first#Link Checking] for dangerous addresses, but it leaves `null` alone, so `` with `$link` set to `null` renders as just ``. Earlier versions printed `href=""` here, which turned the element into a link to the current page. .{data-version:3.2.0} + Classes ======= diff --git a/latte/en/safety-first.texy b/latte/en/safety-first.texy index 2d52791aa9..a4849ac4d5 100644 --- a/latte/en/safety-first.texy +++ b/latte/en/safety-first.texy @@ -374,6 +374,8 @@ Outputs: click here ``` +If the variable is `null`, the attribute is omitted entirely, just like [other attributes |html-attributes#Null Values]. .{data-version:3.2.0} + The check can be disabled using the [nocheck |filters#nocheck] filter.