PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_Flexy » Bug #1275

XHTML Output

Details

Submitted2004-04-23 19:23 UTC
Fromahundiak at ingr dot com
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP VersionIrrelevant
OSNA
Roadmaps(Not assigned)

Comments

[2004-04-23 19:23 UTC] ahundiak at ingr dot com

Description:
------------
Selected options should emit selected="selected" instead of just selected. Likewise radio buttons should emit checked="checked".

Also some PRE and B tags scattered about. All tags should be lower case. And maybe use CSS for B.

[2004-04-25 14:43 UTC] ahundiak at ingr dot com

grep for PRE in the php source code and you can see the generated upper case elements. But I guess that's for debugging and having it be upper case is probably a good idea just to draw attention to it. So disregard that portion of the request.

I don't think you need to make selected="selected" an option. Even old html browsers will accept it without complaint. They only check for the presence of the attribute and not the value. it's just to keep the XHTML validators and parsers happy.

[2005-11-24 11:00 UTC] rebecca dot blyth at gmail dot com

Hi,

Can you document this behaviour, please? It's been causing me problems... I only found out about it by reading the source code!

A couple of lines somewhere in the bit about creating/using form elements along the lines of the following would be very useful.
---
By default, attributes with no associated value,such as "checked" and "selected", are output in HTML style, ie <input type="radio" id="1" name="test_radio" value="1" checked />. If you wish attributes with no associated value to be output in XHMTL style with the attribute value being the attribute name, set an attribute 'flexy:xhtml' for the element. This will output <input type="radio" id="1" name="test_radio" value="1" checked="checked" />.
---

Thanks,
Rebecca