Michael Wechner wrote:

Upayavira wrote:

Michael Wechner wrote:
Upayavira wrote:

Michael Wechner wrote:


Hi

Some Browsers don't like closed tags, like for instance

<iframe/>

but they don't mind

<iframe> </iframe>

The problem is that the xhtml serializer is closing "empty" tags.

(I am aware that the html serializer would be a workaround, but I want
to serialize
the page as xhtml and not as html.)

Is it possible to configure the xhtml serializer to leave them open?

Somehow I have the feeling that this questions was asked before, but
cannot find it
anymore and if there is a solution or not.

Any hint is appreciated

Have you tried the serializer in the serializer block?


I guess that's the one which I am using:

src/blocks/serializers/java/org/apache/cocoon/components/serializers/XHTMLSerializer.java


If that doesn't
work, it might be easier to fix than the core cocoon one.



you mean adding "iframe" to


if ((local.equalsIgnoreCase("textarea")) ||
              (local.equalsIgnoreCase("script")) ||
              (local.equalsIgnoreCase("style"))) {

?


Yeah, that kinda thing!

If iframe is another one of those cases, then it makes sense to add it
to that list and commit it.

ok, will do so. Whereas I think it would make sense to make this list configurable within the map:components declaration. On the other hand the list is not endless ;-) WDYT?


Since the list is not endless, then does not make sense to make it configurable. Better, please do a small research of all the tags that have the same behavior. WDYT?

BTW, This is a old good know bug. It had been around for more than a year. I wonder why this is not just switch the default serializer.

Best Regards,

Antonio Gallardo.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]