On Tuesday 08 May 2012 16:35:05 Daniel Gruno wrote:
> On 08-05-2012 09:42, André Malo wrote:
> > On Tuesday 08 May 2012 09:35:25 humbed...@apache.org wrote:
> >> URL: http://svn.apache.org/viewvc?rev=1335366&view=rev
> >> Log:
> >> Small hack so the XSLT process won't turn <div></div> into <div/>, thus
> >> messing up the DOM tree.
> >
> > Suggestion: document.write() the div container. Then it's also better
> > HTML without JS.

> I'm not sure I quite follow you there. Could you elaborate on this?

Currently there's an empty <div></div> container in the HTML, which is... well 
semantic crap ;)

Since the comments are only available if JS is enabled (and only then the div 
container is useful), the suggestion is to create the div from within the 
javascript.

document.write('<div><\/div>');

This also solves the <div/> problem, since xslt doesn't prcoess it at all.

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org

Reply via email to