Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <6273511.TCWOPxxUMq@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 10 Feb 2012 17:07:41 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: DOCTYPE related question Newsgroups: comp.lang.javascript References: <4f3503f5$0$6915$e4fe514c@news2.news.xs4all.nl> <6jaaj755k23g5ntuvb0ql3p8pnclqlmu5u@4ax.com> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 32 NNTP-Posting-Date: 10 Feb 2012 17:07:41 CET NNTP-Posting-Host: 3b401e6d.newsspool3.arcor-online.net X-Trace: DXC=CIIIUZBodjL74okIm;?DS@McF=Q^Z^V3H4Fo<]lROoRA8kF I hope you've wrapped your script within the CDATA element as this is > a requirement for XHTML. No, it is not. It is a recommendation (and I do not mean W3C Recommandation, although that applies as well). >>| function newNode(x,y,width,height) { >>| var node = document.createElement('div'); >>| node.style.position='absolute'; >>| node.style.left = xOffset+x; > node.style.left = xOffset+x + "px"; >>| node.style.top = yOffset+y; > node.style.top = yOffset+y +"px"; >>| node.style.width = width; > node.style.width = width + "px"; >>| node.style.height = height; > node.style.height = height + "px"; >>| return node; >>| } This script does not contain any `<' or `&'. Therefore, it does not need to be declared CDATA. PointedEars -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs,