[
https://issues.apache.org/jira/browse/OFBIZ-12697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612635#comment-17612635
]
Florian Motteau commented on OFBIZ-12697:
-----------------------------------------
[~danwatford] my initial use case was only to render the title attribute (so
clearly a bug fix since the title attribute is mentionned in XSD). I used a FSE
just to get a little bit more flexibility (eg, adapt the tooltip to the
hyperlink state : enabled or disabled, create or update...). So no real need on
this for me.
I understand your point on performance though, and maybe we can deal with
specific (and rare) use cases without a dynamic title. I will update this with
a static title.
> Hyperlink: support title attribute
> ----------------------------------
>
> Key: OFBIZ-12697
> URL: https://issues.apache.org/jira/browse/OFBIZ-12697
> Project: OFBiz
> Issue Type: Improvement
> Affects Versions: 22.01.01, Upcoming Branch
> Reporter: Florian Motteau
> Priority: Minor
>
> The `hyperlink` widget can have a `title` attribute, but this attribute is
> not rendered as an HTML `title` attribute on the rendered `a` :
> `<hyperlink target="myUrl" description="text content for the rendered 'a'"
> title="tooltip content">`
> ...renders like :
> `<a href="myUrl">text content for the rendered 'a'</a>`
> ...whereas one can assume that the title attribute will be used like so :
> `<a href="myUrl" title="tooltip content">text content for the rendered
> 'a'</a>`
> ...so when hovering the link, we get a browser tooltip.
> It would be nice to make the `title` attribute for `hyperlink` (which is
> already present in the XSD) to be rendered as a `title` HTML attribute on the
> link, using a `FlexibleStringExpander`.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)