Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

XHTML output

Quote Reply
XHTML output
I am trying to make the HTML output of GForum "XHML 1.0 Transitional" compatible.

Everything is pretty straightforward, except for the <%hidden_form%> tag in "include_footer.html", which is something like

Code:
<input type=hidden name="guest" value="43">
I would like it to be

Code:
<input type="hidden" name="guest" value="43" />
Do I have to dig into the code, or is there an easier way to change this?


Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] XHTML output In reply to
Hmmm, would there be any problems with older HTML specifications making it always end in a slash? If not, the change is quite easy - but in the code - I can tell you where to change it.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [jagerman] XHTML output In reply to
Not completely sure if all older user-agents would handle it always correctly. W3C says, that it works allright, as long as you put a space before the trailing /, c.f. http://www.w3.org/TR/xhtml1/#guidelines

And yes, I would like to know where to change this in the code (although I will probably wait with the change until the first release is out!).


Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] XHTML output In reply to
Just search for 'input type=hidden' in GForum.pm - it's in two locations, lines 133 and 137 on my copy (but yours could be different).

Basically, the change I made was to add the " " around hidden, and put ' /' before the closing >. That ought to work.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com