Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11566
| Message-ID | <6273511.TCWOPxxUMq@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-02-10 17:07 +0100 |
| 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 |
Followups directed to: comp.lang.javascript
Jeff North wrote:
> 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, <f806at$ail$1$8300dec7@news.demon.co.uk>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
DOCTYPE related question "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-10 12:48 +0100
Re: DOCTYPE related question "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-02-10 14:05 +0200
Re: DOCTYPE related question Martin Honnen <mahotrash@yahoo.de> - 2012-02-10 13:07 +0100
Re: DOCTYPE related question "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-10 16:41 +0100
Re: DOCTYPE related question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-10 13:35 +0100
Re: DOCTYPE related question Jeff North <jnorthau@yahoo.com.au> - 2012-02-11 01:34 +1100
Re: DOCTYPE related question "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-10 16:42 +0100
Re: DOCTYPE related question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-10 17:07 +0100
csiph-web