- From: <bugzilla@jessica.w3.org>
- Date: Wed, 30 Apr 2014 22:44:04 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25491 Rob Buis <rwlbuis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rwlbuis@gmail.com --- Comment #8 from Rob Buis <rwlbuis@gmail.com> --- (In reply to Simon Pieters from comment #7) > 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|Mouse > Events|UIEvent|UIEvents)[\"']" createEvent.txt > other-createEvent.txt I have also seen examples that refer to "KeyboardEvent": https://developer.mozilla.org/en-US/docs/Web/API/event.initKeyEvent Not sure how many websites out there use it though. Also I wonder why there are tests to verify that createEvent("ProgressEvent") is not possible? Is it special and needs as test compared to the above? -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Wednesday, 30 April 2014 22:44:06 UTC