as The `id` attribute got more `class`y in HTML5 By mathiasbynens.be Published On :: Sun, 11 Jul 2010 17:38:38 +0200 One of the more subtle yet awesome changes that HTML5 brings, applies to the id attribute. I already tweeted about this a few months ago, but I think this is interesting enough to write about in more than 140 characters. Full Article
as Bulletproof JavaScript benchmarks By mathiasbynens.be Published On :: Thu, 23 Dec 2010 11:15:24 +0100 The following article, written by John-David Dalton and yours truly, was published as part of the Performance Calendar series in 2010. Full Article
as Using the `oninput` event handler with `onkeyup`/`onkeydown` as its fallback By mathiasbynens.be Published On :: Wed, 11 May 2011 09:31:52 +0200 HTML5 standardizes the oninput event handler, which should be used to detect user input in JavaScript. Sure, you could use onkeydown or onkeyup instead, but those were never really designed for this particular use case, and it shows. Full Article
as How I detect and use `localStorage`: a simple JavaScript pattern By mathiasbynens.be Published On :: Fri, 29 Jul 2011 15:09:40 +0200 By now, everyone knows how to detect and use localStorage. However, I’ve been using a seemingly unconventional (but slightly more efficient) technique to do so. Since I haven’t seen it documented anywhere else, here goes! Full Article
as JavaScript `foo.prototype.bar` notation By mathiasbynens.be Published On :: Fri, 12 Aug 2011 10:56:54 +0200 As a follow-up to the post documenting a few popular HTML element + attribute notations, here’s a similar one about JavaScript. Full Article
as JavaScript character escape sequences By mathiasbynens.be Published On :: Wed, 21 Dec 2011 15:24:30 +0100 Having recently written about character references in HTML, I figured it would be interesting to look into JavaScript character escapes as well. Full Article
as JavaScript’s internal character encoding: UCS-2 or UTF-16? By mathiasbynens.be Published On :: Fri, 20 Jan 2012 22:18:54 +0100 Does JavaScript use UCS-2 or UTF-16 encoding? Since I couldn’t find a definitive answer to this question anywhere, I decided to look into it. The answer depends on what you’re referring to: the JavaScript engine, or JavaScript at the language level. Full Article
as Valid JavaScript variable names in ES5 By mathiasbynens.be Published On :: Tue, 21 Feb 2012 15:19:15 +0100 Did you know var π = Math.PI; is syntactically valid JavaScript? I thought this was pretty cool, so I decided to look into which Unicode glyphs are allowed in JavaScript variable names, or identifiers as the ECMAScript specification calls them. Full Article
as Unquoted property names / object keys in JavaScript By mathiasbynens.be Published On :: Mon, 05 Mar 2012 21:17:54 +0100 Fun fact: var foo = { H̹̙̦̮͉̩̗̗ͧ̇̏̊̾Eͨ͆͒̆ͮ̃͏̷̮̣̫̤̣Cͯ̂͐͏̨̛͔̦̟͈̻O̜͎͍͙͚̬̝̣̽ͮ͐͗̀ͤ̍̀͢M̴̡̲̭͍͇̼̟̯̦̉̒͠Ḛ̛̙̞̪̗ͥͤͩ̾͑̔͐ͅṮ̴̷̷̗̼͍̿̿̓̽͐H̙̙̔̄͜: 42 }; is valid JavaScript. It may not be immediately obvious, but the real surprise here is that the Cthulhu-esque property name is not surrounded by quotes. Intrigued by this, and having written about the similar topic of JavaScript identifiers before, I decided to look into valid property names in JavaScript. When do they need to be quoted? When can the quotes be omitted? And in which cases can dot notation be used instead of bracket notation to get or set a property based on its name? Full Article
as How to support full Unicode in MySQL databases By mathiasbynens.be Published On :: Mon, 30 Jul 2012 15:16:16 +0200 Are you using MySQL’s utf8 charset in your databases? In this write-up I’ll explain why you should switch to utf8mb4 instead, and how to do it. Full Article
as Reserved keywords in JavaScript By mathiasbynens.be Published On :: Wed, 12 Jun 2013 19:46:35 +0200 Looking for a list of all reserved words in JavaScript? You’ve come to the right place. I recently needed such a list myself, but ended up comparing the reserved keywords in all ECMAScript versions as well. The result is listed below, for future reference. Full Article
as JavaScript has a Unicode problem By mathiasbynens.be Published On :: Sun, 20 Oct 2013 00:39:57 +0200 The way JavaScript handles Unicode is… surprising, to say the least. This write-up explains the pain points associated with Unicode in JavaScript, provides solutions for common problems, and explains how the ECMAScript 6 standard improves the situation. Full Article
as PBKDF2+HMAC hash collisions explained By mathiasbynens.be Published On :: Tue, 25 Mar 2014 08:47:42 +0100 It’s trivial to find colliding passwords when hashing with PBKDF2-HMAC-anything. This post explains why that is. Full Article
as Dear Google, please fix plain text emails in Gmail By mathiasbynens.be Published On :: Fri, 04 Jul 2014 08:58:33 +0200 By default, composing a new email in Gmail results in an HTML email under the hood. It’s possible to opt-out of that and use plain text email instead, but that leads to some problems. Full Article
as Valid JavaScript variable names in ES2015 By mathiasbynens.be Published On :: Wed, 04 Mar 2015 19:07:48 +0100 ES2015 updates the grammar for identifiers. This affects a number of things, but most importantly, identifiers can be used as variable names, and identifier names are valid unquoted property names. This post describes the observable changes compared to the old ES5 behavior. Full Article
as Unicode property escapes in JavaScript regular expressions By mathiasbynens.be Published On :: Wed, 27 Jul 2016 11:53:47 +0200 ES2018 adds support for Unicode property escapes of the form p{…} and P{…} to JavaScript regular expressions. This article explains what Unicode property escapes are, how they work, and why they’re useful. Full Article
as ECMAScript regular expressions are getting better! By mathiasbynens.be Published On :: Wed, 25 Jan 2017 11:01:45 +0100 This article highlights what’s happening in the world of JavaScript regular expressions right now. Spoiler: it’s quite a lot — there are more RegExp-related proposals currently advancing through the TC39 standardization process than there have been updates to RegExp in the history of ECMAScript! Full Article
as Asynchronous stack traces: why `await` beats `Promise#then()` By mathiasbynens.be Published On :: Mon, 02 Oct 2017 15:29:55 +0200 Compared to using promises directly, not only can async and await make code more readable for developers — they enable some interesting optimizations in JavaScript engines, too! This write-up is about one such optimization involving stack traces for asynchronous code. Full Article
as JavaScript engine fundamentals: Shapes and Inline Caches By mathiasbynens.be Published On :: Thu, 14 Jun 2018 12:57:44 +0200 This article describes some key fundamentals that are common to all JavaScript engines — and not just V8, the engine the authors work on. As a JavaScript developer, having a deeper understanding of how JavaScript engines work helps you reason about the performance characteristics of your code. Full Article
as JavaScript engine fundamentals: optimizing prototypes By mathiasbynens.be Published On :: Thu, 16 Aug 2018 10:35:56 +0200 This article explains JavaScript engine optimization pipeline trade-offs, and describes how engines such as V8 speed up accesses to prototype properties. As a JavaScript developer, having a deeper understanding of how JavaScript engines work helps you reason about the performance characteristics of your code. Full Article
as A horrifying `globalThis` polyfill in universal JavaScript By mathiasbynens.be Published On :: Thu, 18 Apr 2019 14:40:02 +0200 The globalThis proposal introduces a unified mechanism to access the so-called “global object” a.k.a. “the global” in any JavaScript environment. It sounds like a simple thing to polyfill, but it turns out it’s pretty hard to get right. Full Article
as Death toll now 44, TN sees 526 more +ve cases By timesofindia.indiatimes.com Published On :: Sat, 09 May 2020 21:09:27 IST Full Article
as TN: As Chennai botches up, districts show way By timesofindia.indiatimes.com Published On :: Sun, 10 May 2020 06:48:35 IST As Chennai still grapples with scanty containment zone management and spike in the number of positive cases, other districts in the state have succeeded in flattening the curve using effective containment strategy. Full Article
as Chennai: 356 passengers from Dubai quarantined By timesofindia.indiatimes.com Published On :: Sun, 10 May 2020 08:08:30 IST All the 356 passengers who arrived from Dubai by the first two rescue flights were sent to quarantine centres after their throat and nasal swabs were taken at Chennai airport on Saturday. The first flight IX 612 had 179 passengers and the second 177. Full Article
as Master the claim procedure to cope better during emergency in family By www.business-standard.com Published On :: Sat, 09 May 2020 22:50:14 +0530 With the onset of this pandemic, policyholders should now take the next crucial step of understanding how to go about filing a health insurance claim Full Article
as 166 stranded passengers in Jammu sent to native states in buses By www.newkerala.com Published On :: Sun, 10 May 2020 03:03:01 +0530 Full Article
as Delhi HC directs authorities to declare candiate with bipolar disorder as selected for Delhi Judicial Service By www.newkerala.com Published On :: Sun, 10 May 2020 03:06:02 +0530 Full Article
as Uttarakhand Police to probe complaints of sexual harassment against former IAS officer, Shantikunj Haridwar chief By www.newkerala.com Published On :: Sun, 10 May 2020 03:12:02 +0530 Full Article
as 53 new COVID-19 cases, 1 death in Indore on Friday By www.newkerala.com Published On :: Sun, 10 May 2020 03:39:01 +0530 Full Article
as Clear directions given to officials to not allow schools to open: Basic Education Officer, Aligarh By www.newkerala.com Published On :: Sun, 10 May 2020 03:54:01 +0530 Full Article
as 13 new COVID-19 cases reported in J-K By www.newkerala.com Published On :: Sun, 10 May 2020 04:09:01 +0530 Full Article
as 'I am healthy, have no disease,' says Amit Shah dismissing rumours around his health By www.newkerala.com Published On :: Sun, 10 May 2020 04:12:02 +0530 Full Article
as Locals demand relocation of LG Polymers after gas leak By www.newkerala.com Published On :: Sun, 10 May 2020 05:57:01 +0530 Full Article
as JNU releases tentative academic calendar for Monsoon session, set to return to classes by June 25 By www.newkerala.com Published On :: Sun, 10 May 2020 06:09:01 +0530 Full Article
as Crime rate drastically reduced during lockdown: Goa police By www.newkerala.com Published On :: Sun, 10 May 2020 06:15:01 +0530 Full Article
as Delhi HC asks authorities to consider plea to mandate identity proof to purchase metro card By www.newkerala.com Published On :: Sun, 10 May 2020 06:27:01 +0530 Full Article
as COVID-19 crisis: Chhattisgarh CM writes to PM, asks for Rs 30,000 crore package for state By www.newkerala.com Published On :: Sun, 10 May 2020 06:33:01 +0530 Full Article
as Crime cases in Goa drop by 67 pc amid COVID-19 lockdown By www.newkerala.com Published On :: Sun, 10 May 2020 06:45:02 +0530 Full Article
as 36 new COVID-19 cases reported in Karnataka, state tally 789 By www.newkerala.com Published On :: Sun, 10 May 2020 06:48:02 +0530 Full Article
as Excise duty on liquor increased by 25pc : Assam Industries and Commerce Minister By www.newkerala.com Published On :: Sun, 10 May 2020 06:51:01 +0530 Full Article
as Govt revises discharge policy: Severe Covid cases will have to test negative through RT-PCR By www.newkerala.com Published On :: Sun, 10 May 2020 07:08:01 +0530 Full Article
as 16 new cases, 11 more containment zones in Gurugram By www.newkerala.com Published On :: Sun, 10 May 2020 07:15:03 +0530 Full Article
as Jogi has heart attack, is stable By www.newkerala.com Published On :: Sun, 10 May 2020 07:20:02 +0530 Full Article
as Do not anticipate worst case situation like developed countries in India, says Union Health Minister Harsh Vardhan By www.newkerala.com Published On :: Sun, 10 May 2020 07:27:02 +0530 Full Article
as Naidu writes to PM, requests scientific probe into Vizag gas leak incident By www.newkerala.com Published On :: Sun, 10 May 2020 07:36:02 +0530 Full Article
as TRF, Pakistan's IT cell for terror groups in Kashmir? By www.newkerala.com Published On :: Sun, 10 May 2020 07:47:01 +0530 Full Article
as Vehicles return to Hyderabad roads after easing of lockdown By www.newkerala.com Published On :: Sun, 10 May 2020 07:54:01 +0530 Full Article
as Spike in Covid cases continues in Karnataka, tally 794 By www.newkerala.com Published On :: Sun, 10 May 2020 07:55:01 +0530 Full Article
as Plea in Delhi HC seeks SIT, CBI probe into 'Bois Locker Room' case By www.newkerala.com Published On :: Sun, 10 May 2020 08:00:02 +0530 Full Article
as Suicide case: AAP legislator Jarwal, aide arrested By www.newkerala.com Published On :: Sun, 10 May 2020 08:11:01 +0530 Full Article