Results 1 to 6 of 6

Thread: Anylinkmenu throwing HTML 5 error

  1. #1
    Join Date
    Aug 2009
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Anylinkmenu throwing HTML 5 error

    1) Script Title: AnyLink JS Drop Down Menu v2.3

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

    3) Describe problem: We use Anylinkmenu.

    Our anchor links look like this:

    HTML Code:
    <a class="menuanchorclass" rel="anylinkmenu1" rev="lr">
    When we validate the page for HTML5, the following error is thrown FOR EACH anchor tag:

    Bad value anylinkmenu1 for attribute rel on element a: The string anylinkmenu1 is not a registered keyword.

    Apparently, HTML5 does not allow rel="anylinkmenu1", as "rel=" is only for specific items and anylinkmenu1 isn't one of them.

    We want to both use anylinkmenu ... and also have our pages HTML5 compliant.

    Does anyone have a solution?

    Thanks.
    Last edited by james438; 10-13-2015 at 09:09 PM. Reason: format

  2. #2
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    please post a link to your site so that we can see better troubleshoot your issue.
    To choose the lesser of two evils is still to choose evil. My personal site

  3. #3
    Join Date
    Aug 2009
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Here is the URL of the page that we converted to HTML5 ... when you validate using the W3C validator, the only errors are the anylinkmenu errors described above:

    https://www.parishpublishing.org/res...ault_html5.asp

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

  5. The Following User Says Thank You to molendijk For This Useful Post:

    brossyg (10-14-2015)

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

    Default

    In the anylinkmenu.js file, search for this line;
    Code:
    var relattr=anchorobj.getAttribute("rel")
    and change it to this;
    Code:
    var relattr=anchorobj.getAttribute("data-rel")
    And change the HTML to this;
    Code:
    <a class="menuanchorclass" data-rel="anylinkmenu1" rev="lr">
    Untested - on mobile
    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

  7. The Following User Says Thank You to Beverleyh For This Useful Post:

    brossyg (10-14-2015)

  8. #6
    Join Date
    Aug 2009
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you Beverleyh ... that worked.

Similar Threads

  1. Throwing an error to abort javascript execution
    By jayapalchandran in forum JavaScript
    Replies: 6
    Last Post: 05-06-2011, 04:36 PM
  2. Resolved Wordpress function throwing an error
    By ModernRevolutions in forum HTML
    Replies: 3
    Last Post: 04-15-2009, 03:26 PM
  3. Resolved small scroll to top code throwing IE error
    By ?foru in forum JavaScript
    Replies: 1
    Last Post: 04-09-2009, 12:57 AM
  4. Umm html Error?
    By bluewalrus in forum HTML
    Replies: 8
    Last Post: 10-15-2008, 01:35 PM
  5. throwing an error msg
    By sprager in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-01-2005, 09:43 PM

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
  •