This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Created attachment 652 [details] Proposed pathc for donation script In validator.html and xhtml.properties, <div class="intro" id="don_program"></div> <script type="text/javascript" src="http://www.w3.org/QA/Tools/don_prog.js"></script> Script don_prog.js did not output "<div>" nor "<p>", so this is not preferable in XHTML 1.0.
(In reply to comment #0) > Created an attachment (id=652) [details] > Proposed pathc for donation script > > In validator.html and xhtml.properties, > > <div class="intro" id="don_program"></div> > <script type="text/javascript" > src="http://www.w3.org/QA/Tools/don_prog.js"></script> > > > Script don_prog.js did not output "<div>" nor "<p>", so this is not preferable > in XHTML 1.0. The script does not output anything, it actually modifies the DOM, and in particular it acts on the div#don_program. This is why I assume it is better to have the script outside and after div#don_program is properly created in the DOM. Do you have a pointer explaining why that would be a bad idea?