Closed (fixed)
Project:
Webform Block
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 17:01 UTC
Updated:
10 Jul 2009 at 14:20 UTC
For each webform block, the module create an anchor <a name="[aliased_path_to_the_webform]"></a>. The problem if that, often, the path contains one or more slashes ("/"), and you can't have slashes inside a "name" attribute (as per XHTML specification). These should be replaced or deleted, along with all other invalid characters for the "name" attribute.
Comments
Comment #1
buddaGood point. I currently only strip out spaces.
Is there any good function to do this work already used elsewhere in Drupal? Saves re-writing...
Comment #2
buddaFixed in CVS.
using http://drupalcontrib.org/api/function/form_clean_id/6 plus a string replace on the '/'.