cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Déflache (JIRA) <>
Subject [jira] Commented: (COCOON-1918) unwanted whitespace or "block" characters in browser tooltips/help bubbles
Date Thu, 21 Sep 2006 16:34:23 GMT
    [ ] 
Guillaume Déflache commented on COCOON-1918:

Solution #1 : replace in default styling's XSLT stylesheets all "fd:hint" XPath expressions
used for "title" attributes by "normalize-space(fd:hint)":
 - this will not solve the problem for other (custom) stylings
 - this only cares for "fd:hint", but similar problems can occur with other "display-data"
elements : "fd:label" and "fd:help"

Solution #2 : remove this ignorable whitespace when the form definition files are read, by
removing the first and last whitespace-only DOM text nodes if they exist:
 - the current implementation requires that a read-write DOM document is used in the widget
definition builder to work, I could not check if or where it is guaranteed

> unwanted whitespace or "block" characters in browser tooltips/help bubbles
> --------------------------------------------------------------------------
>                 Key: COCOON-1918
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms
>    Affects Versions: 2.1.8, 2.2-dev (Current SVN), 2.1.9, 2.1.10-dev (current SVN)
>            Reporter: Guillaume Déflache
>            Priority: Minor
> Problem : almost all tooltips contain extra characters around the text provided in the
"fd:hint" element : with IE, they are always rendered as whitespace, with Firefox, some (tabs
IIRC) appear as "block" characters.
> These originate from the whitespace used for formatting the form definition files.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message