I agree with but in my case, I have a <iframe ...></iframe> in my TML file. This is rendered as <iframe />. I mean an empty String is not considered as a children.
If I understand well your answer, your advice is to avoid the use of default markup model and explicitly specify xml content type ? -----Message d'origine----- De : Howard Lewis Ship [mailto:[EMAIL PROTECTED] Envoyé : lundi 17 novembre 2008 17:16 À : Tapestry development Objet : Re: Tapestry 5 : MarkupModel and strict XML When writing text/html markup, it is necessary to write some tags expanded, because the browser doesn't interpret the XML stream as XML and gets confused by the empty tags (i.e., <script/>). If you change the response type to "text/xml", Tapestry uses a different implementation that outputs pure XML. You'll want to make sure you use a proper DOCTYPE that the browser will understand. On Mon, Nov 17, 2008 at 7:22 AM, Cordenier Christophe <[EMAIL PROTECTED]> wrote: > Hello All, > > Very glad to see the 5.0.16 has been realased and available to download. I > have integrated it this morning and found something that could be an issue. > It's about Tapestry Markup Language and Tapestry DOM API. > > AHREF : > > So, I have designed a component that has in its template file a "A HREF" tag > with empty content. > If I use this component, I can observe the A HREF element Multiple times > around different parts of the resulting HTML File. > I have a look at the "toMarkup" method of the > org.apache.tapestry5.dom.Element Class and found this line > > String close = (!hasChildren && style == EndTagStyle.ABBREVIATE) ? > "/>" : ">"; > > My question is, should'nt we close the tag immediatly also if the Tag has not > content ? > > I admit this is not accurate to have an empty "ahref" but this may happen. > > IFRAME : > > Is it possible to add the iFrame to the set of required end tags ? For the > same reason as above the resulting "iframe" tag is like this : > > <iframe src="..." width="..." /> > > It should be written like this <iframe src="..." width="..."></iframe> (test > under IE and Firefox) > > Thank you for your great work, > Christophe. > > ________________________________ > > Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage > exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret > professionnel. Si vous recevez ce message par erreur, merci d'en avertir > imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne > pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne > pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs > efforts soient faits pour maintenir cette transmission exempte de tout virus, > l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne > saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis. > > This e-mail and the documents attached are confidential and intended solely > for the addressee; it may also be privileged. If you receive this e-mail in > error, please notify the sender immediately and destroy it. As its integrity > cannot be secured on the Internet, the Atos Origin group liability cannot be > triggered for the message content. Although the sender endeavours to maintain > a computer virus-free network, the sender does not warrant that this > transmission is virus-free and will not be liable for any damages resulting > from any virus transmitted. > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
