W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: Barewords in on* attributes, redux (also, find() and company)

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Wed, 14 Dec 2011 00:54:11 -0800
Message-ID: <CABNRm60aVrikw-KXLZUAfg5kAi-2LS31ECxb31T8iPx7PHE-wA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
This is great! Thanks for doing this. Can we also get stats. on new Node
methods like append, remove, etc...?

- Ryosuke

On Tue, Dec 13, 2011 at 11:36 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> John Jensen here at Mozilla has been doing some web crawling trying to
> find what barewords are used in on* attributes.
> What I have so far as a result is a list of about 1.7 million barewords
> used across several tens of thousands of pages.  If people are interested
> in the exact methodology, I can probably get a description. I'm working on
> making sure that it's ok for me to post the data in its entirety so you can
> all look as well.  Assuming it is (very likely), where's a good place to
> stick a 7MB compressed file?
> In any case, for this particular data set there are no hits on "findAll"
> or "matches" (good!), but there are two hits on "find" as a bareword in an
> on* attribute.  Specifically:
> 1)  http://otc-pif.rbc.ru/pif_**calculator/calculator.jsp<http://otc-pif.rbc.ru/pif_calculator/calculator.jsp>has onclick="find(document.
> **getElementById(current + 'List').children, searchString.value)"
> 2)  http://bookmark.people.com.cn/**index.html<http://bookmark.people.com.cn/index.html>has onclick="find()"
> These would both obviously get broken by the proposed find() API, unless
> we actually do some sort of workaround for this problem...
> -Boris
Received on Wednesday, 14 December 2011 08:54:59 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:37 UTC