httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Date Tue, 08 May 2012 14:56:08 GMT

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 humbedooh@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-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message