Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: simple error Date: Sun, 28 Dec 2014 21:44:06 +0100 Organization: PointedEars Software (PES) Lines: 36 Message-ID: <1745799.hd9xs91tD1@PointedEars.de> References: <2919102.Zlc1T3vdmV@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1419799467 21128 eJwFwYEBgDAIA7CXQKDMc6Cz/59gUgEHO1HIUkk3wnLVOgP4a7e1M/vEtY7BDj+6auKQRfsBL5MSDA== (28 Dec 2014 20:44:27 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 28 Dec 2014 20:44:27 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQcBACAMAzBLnJ0iZ6/+JZDotW3lYmqiVPacbGIQHZhFZI6b7MzsdxKsW84aXh/XggZ9xZFl+h4gH6W0FtE= Cancel-Lock: sha1:VXGwqe338qwUZ/jpu7f0ZKc4g98= X-NNTP-Posting-Host: eJwNyMERwDAIA7CVCtimGYeDsP8IrZ5iyNQJUeBy1xnXNW+0wwAVDsiqZ5VjlWatv6zP6Do/Bp0QQA== Xref: csiph.com comp.lang.javascript:26399 Jukka K. Korpela wrote: > 2014-12-28, 21:13, Lahn wrote: >>> (`) might also work (it does in my firefox at least). >> If so, only because of error correction. >> >> > attribute-value-state> > > Of course, it has nothing to do with HTML error correction. Anyone who > actually understands the elements of the basics of the fundamentals of > HTML parsing, instead of showing off and making pointless “learned” > lectures, knows that. The HTML5 parsing algorithm at least, which I cited, states that if a backtick (`) is parsed at this position, it constitutes a “Parse error”, that should be treated like “Anything else”, therefore “append[ed] […] to the current attribute’s value”. This means it would become part of the attribute value. An event-handler attribute value is parsed (per the definition of the default scripting language) as an ECMAScript /Program/. But a backtick as first character of an ECMAScript /Program/ is a syntax error in ECMAScript implementations because it cannot be produced by production | Program : SourceElements_opt (assuming no syntax extensions). Therefore, error correction would be necessary to execute that /Program/. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.