You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Smigge <jo...@hotmail.com> on 2009/01/12 16:02:05 UTC

Serialize with type html removes input tags, why? How to fix?

Hi!

I'm serializing an html document, but for some reason it drops stuff like
this:
<input type="checkbox" checked="yes" name="what" value="something"/>

Why? 
-- 
View this message in context: http://www.nabble.com/Serialize-with-type-html-removes-input-tags%2C-why--How-to-fix--tp21416081p21416081.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: Serialize with type html removes input tags, why? How to fix?

Posted by Smigge <jo...@hotmail.com>.


Jasha Joachimsthal-2 wrote:
> 
> Hi, 
> 
>> -----Original Message-----
>> From: Smigge [mailto:jogilius@hotmail.com] 
>> Sent: maandag 12 januari 2009 16:02
>> To: users@cocoon.apache.org
>> Subject: Serialize with type html removes input tags, why? How to fix?
>> 
>> 
>> Hi!
>> 
>> I'm serializing an html document, but for some reason it 
>> drops stuff like
>> this:
>> <input type="checkbox" checked="yes" name="what" value="something"/>
>> 
>> Why? 
> 
> What do you mean, "drop"? Don't they show on the page or are they
> missing in the response (when you view the page source)?
> 
> 
> Jasha Joachimsthal 
> 
> 

I meant that it was missing from the source as well. But actually the
problem is somewhere else after all. I thought that I had tested it that the
input survived the pipeline up to the html serialization, but in fact it
doesn't. It's not the serialization that kills the input-tags. Sorry for the
trouble and thanks for trying to help.
-- 
View this message in context: http://www.nabble.com/Serialize-with-type-html-removes-input-tags%2C-why--How-to-fix--tp21416081p21430790.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: Serialize with type html removes input tags, why? How to fix?

Posted by Jasha Joachimsthal <j....@onehippo.com>.
Hi, 

> -----Original Message-----
> From: Smigge [mailto:jogilius@hotmail.com] 
> Sent: maandag 12 januari 2009 16:02
> To: users@cocoon.apache.org
> Subject: Serialize with type html removes input tags, why? How to fix?
> 
> 
> Hi!
> 
> I'm serializing an html document, but for some reason it 
> drops stuff like
> this:
> <input type="checkbox" checked="yes" name="what" value="something"/>
> 
> Why? 

What do you mean, "drop"? Don't they show on the page or are they
missing in the response (when you view the page source)?


Jasha Joachimsthal 
 
j.joachimsthal@onehippo.com - jasha@apache.org
 
www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-5100 +1 (707) 773-4646


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Serialize with type html removes input tags, why? How to fix?

Posted by David Legg <da...@searchevent.co.uk>.
Hi Smigge,

There is a little more detailed account of how the default HTML 
serializer works here: -

  
http://cocoon.zones.apache.org/daisy/documentation/components/1059/g1/896.html

Both Jasha and I don't know what you mean when you say it "drops 
stuff".  Do you mean it completely removes the whole 'input' tag or 
somehow munges the attributes?

If it's the latter then it may be something to do with how the default 
HTML serializer treats boolean attributes.  For example, <option 
selected="selected"> is output as <option selected>.

Regards,
David Legg

Smigge wrote:
> Hi!
>
> I'm serializing an html document, but for some reason it drops stuff like
> this:
> <input type="checkbox" checked="yes" name="what" value="something"/>
>
> Why? 
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org