Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2739298.Xl3DxExJP4@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 29 May 2012 14:06:05 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <01c8s75sghli0aiofi8uabcun9k7n23nlj@4ax.com> <3596002.OIYgp5SubR@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 37 NNTP-Posting-Date: 29 May 2012 14:06:06 CEST NNTP-Posting-Host: 781a91ca.newsspool4.arcor-online.net X-Trace: DXC=G3W\KPU@3`]Ai;BfRk:?JKCH^FAT X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:14198 Thomas 'PointedEars' Lahn wrote: > Jeff North wrote: >> You will need to rework this line to: >> onclick=" " > >> or if you want double quotes throughout the line you will need: >> onclick=" " > > > Utter nonsense. The value of the `onclick' attribute must be program > code, without further specification, a syntactically correct ECMAScript > /Program/. It MUST NOT contain an unescaped `<' character for that is a an > STAGO (star tag open) delimiter. ECMAScript escape sequences *cannot* be ^t > used to escape markup delimiters as the markup parser will still see them. Clarification: ECMAScript escape sequences cannot be used to escape markup delimiters *if* the escape sequence *still* contains the markup delimiters. In this case, markup escape sequences – onclick="<A href="https://www.myfavoritesite.com"> </A>" – or ECMAScript escape sequences – onclick="\x3cA href=\x22https://www.myfavoritesite.com\x22> \x3c/A>" – could be used to make this Valid *markup*, but the attribute value would still not be the required syntactically valid ECMAScript program, as is _not_ one (`<' is an operator, the operand left-hand side is missing, to begin with). PointedEars -- When all you know is jQuery, every problem looks $(olvable).