diff --git a/core/lib/Drupal/Component/Render/FormattableMarkup.php b/core/lib/Drupal/Component/Render/FormattableMarkup.php
index 9ea24f9..96f8669 100644
--- a/core/lib/Drupal/Component/Render/FormattableMarkup.php
+++ b/core/lib/Drupal/Component/Render/FormattableMarkup.php
@@ -151,7 +151,7 @@ public function jsonSerialize() {
* Prefix text output.
* @endcode
* - :variable: Use when the return value is to be used as a URL value of an
- * HTML attribute, for example the href attribute in an a tag.
+ * HTML attribute. Only the "href" attribute is supported.
* Return value is escaped with
* \Drupal\Component\Utility\Html::escape() and filtered for dangerous
* protocols using UrlHelper::stripDangerousProtocols(). Use this when
@@ -172,13 +172,17 @@ public function jsonSerialize() {
* @todo Add some advice and stronger warnings.
* https://www.drupal.org/node/2569041
*
- * In $string, only HTML attributes that take a URL as the value, are
- * supported via the special ":variable" placeholder. For example, with the
+ * In $string, only the "href" HTML attribute, which takes a URL as the
+ * value, is supported via the special ":variable" placeholder. With the
* "href" attribute, the ":variable" placeholder allows simple links to be
* inserted:
* - Secure: @code link text @endcode
* - Secure: @code link text @endcode
* - Secure: @code @variable @endcode
+ * Unsupported $string examples:
+ * - Only the "href" attribute is supported. So, even other attributes
+ * which take a URL value are unsupported:
+ * - Unsupported: @code
@endcode
* Insecure $string examples:
* - It is insecure in $string to have @ or % placeholders within the "<"
* and ">" of an HTML tag:
@@ -202,7 +206,6 @@ public function jsonSerialize() {
* @see \Drupal\Component\Utility\Html::escape()
* @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols()
* @see \Drupal\Core\Url::fromUri()
- * @see http://stackoverflow.com/questions/2725156/complete-list-of-html-tag-attributes-which-have-a-url-value/2725168#2725168
*/
protected static function placeholderFormat($string, array $args) {
// Transform arguments before inserting them.