View Full Version : Anylinkmenu throwing HTML 5 error

10-13-2015, 07:46 PM
1) Script Title: AnyLink JS Drop Down Menu v2.3

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: We use Anylinkmenu.

Our anchor links look like this:

<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?


10-13-2015, 09:10 PM
please post a link to your site so that we can see better troubleshoot your issue.

10-13-2015, 09:47 PM
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:


10-13-2015, 11:50 PM
Does it help if you use data= instead of rel=?

10-14-2015, 05:08 AM
In the anylinkmenu.js file, search for this line;
var relattr=anchorobj.getAttribute("rel")and change it to this;
var relattr=anchorobj.getAttribute("data-rel")

And change the HTML to this;
<a class="menuanchorclass" data-rel="anylinkmenu1" rev="lr">

Untested - on mobile

10-14-2015, 12:03 PM
Thank you Beverleyh ... that worked.