XHTML Strict and searchbox AREA

I have a design which contains the following:


<MySource_AREA id_name=“search_box” design_area=“searchbox”>

[color=“red”] <MySource_PRINT var=“form_start” />

<MySource_PRINT var=“box” /> <MySource_PRINT var=“submit” />

[color=“blue”] <MySource_PRINT var=“form_end” />[/color]

</MySource_AREA>



which generates:



[color=“red”]<form method=“get” action="…">

<input type=“hidden” name=“mode” value=“results” />[/color]

<input type=“text” id="…" name="…" value=“Search…” />

<input alt=“search” type=“image” src="…" />

[color=“blue”]</form>[/color]



Which won’t validate as Strict because the <input> tags need to be within one of <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <div>, <pre>, <address>, <fieldset>, <ins>, <del>.



Unfortunately i can’t do this because the first hidden <input> tag is generated by the <MySource_PRINT var=“form_start” /> tag which also generates the opening <form> tag.



I think perhaps the solution is to have the <MySource_PRINT var=“form_start” /> tag include a <div> between the <form> and <input> tags, and similarly the <MySource_PRINT var=“form_end” /> tag to include a </div> prior to the </form>.



Cheers,

Garth

Garth: Can you log this on the Bug Tracker, please? :slight_smile: