HTML Validation Problem: Accordions

mattie's picture
mattie
Thu, 05/22/2014 - 09:28
#1
HTML Validation Problem: Accordions

The accordion blocks in the right-hand column are causing thousands of HTML validation errors because of missing anchors: See http://www.moneytools.org/err/errors.png

How specifically should the syntax in the code be changed to aright this?

cindy's picture
cindy
Fri, 05/30/2014 - 06:27

Hi,
We use http://validator.w3.org/ to validate but it shows different result from yours with small error, not very serious
Please check again with http://validator.w3.org/ (cause it is the standard) or tell us what you used to check?

mattie's picture
mattie
Sun, 06/01/2014 - 10:10

I realize it's not a "serious" error, but I need to fix it so that I don't have to sift through thousands of pages in my Deep Trawl HTML validation software. I'm not going to use the W3C service because I need to have over 3,000 pages of the site links validated on a regular basis and I need to do it all at once.

So, again, how *specifically* do I make this correction in your code?

cindy's picture
cindy
Mon, 06/02/2014 - 06:46

Hi,
Please go to Structure > Block and then Disable Accordion block in Side bar Region
And check again whether the error still occurs or not
If yes, just tell us how do you want to fix?

mattie's picture
mattie
Wed, 06/04/2014 - 17:24

When I disable the accordion block, the error no longer occurs. So, the problem is associated with the accordion block. By adding a named anchor just before the anchor link the problem would be resolved.

For instance, by changing the syntax that is currently being generated:

<div id="quickset-accordion_block" class="quick-accordion"><h3><a href= "#quickset-accordion_block_0">Latest Bankrate News</a></h3><div>

to

<div id="quickset-accordion_block" class="quick-accordion"><h3><a name="quickset-accordion_block_0"></a><a href= "#quickset-accordion_block_0">Latest Bankrate News</a></h3><div>

the new HTML should, theoretically, correct the link validation errors.

cindy's picture
cindy
Fri, 06/06/2014 - 03:27

Hi,
please download this module https://drive.google.com/file/d/0B245yG3aZPz4TXFzXzR2Z09xWVU/edit?usp=sh...
Note that, this is a temporary solution. If you update, the problem will occur again
Please go to https://drupal.org/project/issues/quicktabs?status=All&categories=All for more support

mattie's picture
mattie
Fri, 06/06/2014 - 09:56

So, what do I do with this module? Does it need to be edited? Is it a custom or contributed module? Will it correct the problem I'm having? Does it go inside another module folder or what? Please be specific about what I need to do with the thing.

cindy's picture
cindy
Fri, 06/06/2014 - 22:41

Hi,
Please upload this to server ( sites/all/modules/contrib ) and it will overwrite the current quictabs

Cheer!
Cindy

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.