value of attribute "id" invalid: "-" cannot start a name

<div class="drupal-tabs"><ul class="anchors"><li><a href="#-0-1">Newest</a></li><li><a href="#-0-2">Popular</a></li></ul><div id="-0-1" class="fragment"><h2 class="drupal-tabs-title">Newest</h2><div class="panel-pane" id="blog-panel">

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grigori’s picture

yes, I have the same problem, I am doing my final year project and validation on the page i used panels is not 1.0 xhtml strict
Greg

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Panels 2 is no longer available and is unsupported. Marking all Panels 2 issues won't fix.

NancyDru’s picture

Version: 6.x-2.0-alpha3 » 5.x-2.0-rc1a
Status: Closed (won't fix) » Active

Actually, this was reported against the wrong version. As of a few seconds ago, Panels 2 is still available and supported on 5.x according to the project page.

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

In that case, this doesn't contain nearly enough information to do anything about.

That said, I don't think anybody is currently maintaining Panels 2 for Drupal 5, so yes it's still available but I don't think there's anyone to look at the issues. :/

NancyDru’s picture

What more information do you need? The generated output is there as well as the text of the message from the HTML Validator. I will try to gather whatever it takes for "nobody" to fix.

merlinofchaos’s picture

Well, to start with, what generated it? I don't recognize the class="fragment" at all. Now that I think about it, it looks like some javascripty tabs code that's screwing up, which Panels doesn't provide at all. Perhaps this is panels tabs module?

But, see, a proper bug report would've told me what kind of panel this is, what panes were in it, and what the settings were, which is why more information is needed. A module maintainer shouldn't have to try to guess these things from context. For one, we'll guess wrong as often as we guess right, and debug the wrong problem.

NancyDru’s picture

Yes, we do use the Panel Tabs module, so maybe this should be transferred to that queue.

merlinofchaos’s picture

Project: Panels » Panels Tabs
Version: 5.x-2.0-rc1a » 5.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active
Wim Leers’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

This is probably an issue in the D6 branch as well.

smoothify’s picture

Project: Panels Tabs » Tabs (jQuery UI tabs)
Status: Active » Needs review
FileSize
647 bytes

I'm moving this to the tabs queue as this is where the problem lies.

I have attached a patch that simply trims any leading spaces from the tab_name so they are not replaced with a hyphen.

There is a similar issue with accented characters which points to a filtering process being needed.

#715042: Tab title beginning with an accented character causes an XHTML validation error

smoothify’s picture

Title: HTML validation errors » HTML validation errors when title starts with a hyphen

changing title.

smoothify’s picture

doh, lets add a patch that can actually be downloaded :)