Closed (works as designed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
inline_form_errors.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Nov 2017 at 12:26 UTC
Updated:
1 Dec 2017 at 15:45 UTC
Jump to comment: Most recent
Comments
Comment #2
Xtal commentedComment #3
andrewmacpherson commented@Xtal - Where is the
buildToolTipHtml()coming from? I don't thing it's part of Drupal 8 core API.If you can provide some more detail about how you produced the markup specimen in your screenshot, that might help.
Comment #4
Xtal commentedYou're right, the buildTooltipHTML() is a custom method.
The tool tip return is added to the #title of the $form element after the label.
So I think the inline form error is getting everything in the title value and using that as it's message.
I think what might be best for this is to exclude any elements in HTML tags?
The return value is added to the form:
Comment #5
Xtal commentedClosing this, it's more an issue with how I am generating a tooltip, it shouldn't really be added to the title value and probably belongs in the #prefix or #suffix.
Thanks
Comment #6
Xtal commented