[Bug 25491] createEvent and case significance

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25491

Simon Pieters <simonp@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simonp@opera.com

--- Comment #7 from Simon Pieters <simonp@opera.com> ---
In webdevdata data set 2013-09-01 102,000 pages I see the following instances
that don't match those in comment 1 (there were 616 createEvents in total):

"TouchEvent"
'KeyEvents'
"TouchEvent"
'MessageEvent'
"TouchEvent"
'TouchEvent'
"TouchEvent"
"TouchEvent"
"TouchEvent"
"TouchEvent"
"TouchEvent"

So from this data it seems it doesn't need to be case-insensitive, but possibly
some values should be added (TouchEvent?).

$ find . -type f -print0 | xargs -0 -P 4 -n 40 grep -E
"\.createEvent\s*\(\s*[\"'][a-zA-Z]+[\"']" >> ../createEvent.txt
$ grep -Ec "\.createEvent\s*\(\s*[\"'][a-zA-Z]+[\"']" createEvent.txt
616
$ grep -Ev
"\.createEvent\s*\(\s*[\"'](CustomEvent|Event|Events|HTMLEvents|MouseEvent|MouseEvents|UIEvent|UIEvents)[\"']"
createEvent.txt > other-createEvent.txt

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 29 April 2014 07:07:18 UTC