Results 1 to 2 of 2

Thread: Dynamic Drive's Sticky Tooltip--Is it Validatable

  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Drive's Sticky Tooltip--Is it Validatable

    1) Script Title:

    Dynamic Drive's Sticky Tooltip

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...ckytooltip.htm

    3) Describe problem:

    I'd like to use this script in my web site, but I'm a stickler on getting my pages validatable under XHTML 1.0 Transitional. Is there anyone who has problems getting pages with these tooltips to validate, and if so, what did you to do fix them. Thank you in advance.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Not without a rewrite that eliminates its dependence upon non-standard attributes like:

    Code:
    data-tooltip="sticky1"
    However, while these will never pass any validation, they are very unlikely to cause any real problems. Still, I'm a bit disappointed in dd for authoring scripts (this is not the only recent one) that depend upon something like this, especially when, in jQuery (the library this script is based upon), standard attributes may be turned to just about any purpose.

    It could be:

    Code:
    class="sticky1"
    and the selector in the script code could be:

    Code:
    $('* [class*=sticky]')
    But that would necessitate a filter in the event to determine the number, which there probably already is, but the coding for it would be a bit more complex and could collide with other class names that include 'sticky' in them. So the way this script does it is a bit more idiot proof, albeit invalid.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •