Since the code uses definition lists (<dd><dl>...</dl></dd> and <dd><dt>...</dt></dd>) to display each question and answer, there is a minor problem if the FAQ answer contains a definition list within it.

On my site, I have a FAQ answer which contains a mailing address. We're just replicating how the site looks today, and the address is indented and separated from the rest of the text using a definition list.

When trying to do the same thing with the FAQ module, the paragraph following the mailing address is not in line with the rest of the text because including a definition list causes a conflict.

Of course I was able to work around this by placing some span tags around the mailing address, but wonder if you've given any thought to using div's as wrappers for the FAQ question and answer rather than definition lists? Would avoid any conflict with inline text formatting.

Comments

stella’s picture

Assigned: Unassigned » stella
Status: Active » Fixed

Hi,

I've modified the code so it now uses divs instead of <dd> and <dt> tags. It will be included in the next release. Try the next dev release if you want to test it in the meantime (should be available in the next few hours).

Cheers,
Stella

nancydru’s picture

So now everyone who's set up their CSS will find it all broken...

stella’s picture

I did think of that, but it's more important that this issue is fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)
stella’s picture

Released in faq 5.x-2.5.

Cheers,
Stella