You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Guillaume Déflache (JIRA)" <ji...@apache.org> on 2006/09/21 18:34:23 UTC

[jira] Commented: (COCOON-1918) unwanted whitespace or "block" characters in browser tooltips/help bubbles

    [ http://issues.apache.org/jira/browse/COCOON-1918?page=comments#action_12436575 ] 
            
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: http://issues.apache.org/jira/browse/COCOON-1918
>             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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira