Results 1 to 6 of 6

Thread: Animated Collapsible DIV v2.4 / rel="toggle[...]" / not valid

  1. #1
    Join Date
    Sep 2009
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible DIV v2.4 / rel="toggle[...]" / not valid

    1) Script Title: Animated Collapsible DIV v2.4

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem:

    In HTML5 this link type is not valid. See also: http://www.w3.org/TR/html5/links.html#linkTypes

    I.e. for the demo-code in the "pet-area": Bad value "toggle[cat]" for attribute "rel" on element "a": The string "toggle[cat]" is not a registered keyword.

  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

    That's right! This script was written before or shortly after that standard evolved. You can either use a different, probably earlier standard like XHTML 1 (I no longer keep up with everything new in standards), though there might yet be a newer one that's applicable. Bottom line, doesn't break the code in any modern browser. HTML 5 wants all rel attributes to adhere to strict guidelines. This script takes liberties with that, as all previous standards allowed. Oh, and you could use an HTML 5 compliant attribute like one of any of the allowed made up data hyphen (data-whatever) ones to substitute for rel and thereby make the page HTML 5 strict. However, the script would have to be edited, perhaps extensively, to accommodate that. Does it still work as is? I bet it does.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

  4. The Following User Says Thank You to mlegg For This Useful Post:

    Toefoe (02-08-2016)

  5. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  6. The Following 2 Users Say Thank You to Beverleyh For This Useful Post:

    Ripsaw (02-06-2016),Toefoe (02-08-2016)

  7. #5
    Join Date
    Jan 2016
    Posts
    23
    Thanks
    49
    Thanked 3 Times in 2 Posts

    Default

    Oooh, nice work Beverleyh!

    Yes the Dynamic Drive script continues to work with the HTML 5 web pages Toefoe so it's your call as to whether you use it. Does it matter if it validates? Who will know but you? Will anyone else go out of their way to check?

    You can prolly keep right on using it and no one will be any wiser

  8. #6
    Join Date
    Sep 2009
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much! I will go on with your suggestions...

Similar Threads

  1. How Can i add "Minus" and "Plus" to the Animated Collapsible DIV v2.2?
    By web.designer.iq in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-24-2009, 04:36 PM
  2. Animated Collapsible Div "bounce"
    By billymortz in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 03-09-2009, 07:44 PM
  3. Replies: 1
    Last Post: 08-19-2008, 01:36 AM
  4. Replies: 1
    Last Post: 06-12-2008, 01:01 PM
  5. Animated Collapsible Div ("Multiple" Instances)
    By Medyman in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-16-2008, 03:05 AM

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
  •