@@ -503,18 +503,34 @@ Properties of 'config'
503503 comment in the <head> section of the page. Use this to insert a note
504504 like that "Programmed by My-Agency".
505505
506- .. confval :: htmlTag.attributes
506+ .. confval :: htmlTag.attributes.[attribute]
507507 :name: config-htmlTag-attributes
508- :type: array
508+ :type: string / ` stdWrap < https://docs.typo3.org/permalink/t3tsref:stdwrap >`_
509509 :Example: setup-config-htmltag-attributes
510510
511+ .. versionchanged :: 14.0
512+ It is now possible to use `stdWrap <https://docs.typo3.org/permalink/t3tsref:stdwrap >`_
513+ options as a subkey for an attribute, like :ref: `userFunc <t3tsref:confval-parsefunc-userfunc >`,
514+ :ref: `override <t3tsref:confval-stdwrap-override >` or
515+ `Data / getText <https://docs.typo3.org/permalink/t3tsref:data-type-gettext >`_
516+ via TypoScript.
517+
511518 Sets the attributes for the :html: `<html >` tag on the page. Allows to override
512519 and add custom attributes via TypoScript without having to re-add the
513520 existing attributes generated by SiteHandling.
514521
515522 This property supersedes the previous :typoscript: `config.htmlTag_setParams ` option by providing
516523 a more flexible API to add attributes.
517524
525+ .. code-block :: typoscript
526+
527+ config.htmlTag.attributes.my-attribute = 123
528+
529+ .. code-block :: typoscript
530+
531+ config.htmlTag.attributes.my-attribute = 123
532+ config.htmlTag.attributes.my-attribute.userFunc = MyVendor\MyExtension\HtmlTagEnhancer->overrideMyAttribute
533+
518534 .. confval :: htmlTag_setParams
519535 :name: config-htmlTag-setParams
520536 :type: :ref: `data-type-string `
0 commit comments