
nd at perlig
May 8, 2012, 7:56 AM
Post #3 of 3
(148 views)
Permalink
|
|
Re: svn commit: r1335366 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
[In reply to]
|
|
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 [at] apache 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 [at] httpd For additional commands, e-mail: docs-help [at] httpd
|