[whatwg] [JavaScript / Web ECMAScript] Dropping the “escaped reserved words” compatibility requirement

2012-07-05 Thread Mathias Bynens
http://mathias.html5.org/specs/javascript/#escaped-reserved-words says: JavaScript implementations must support ECMAScript identifiers that unescape to a reserved word, as long as at least one character is escaped using a Unicode escape sequence. For example, var var; throws a syntax error,

Re: [whatwg] [JavaScript / Web ECMAScript] Dropping the “escaped reserved words” compatibility requirement

2012-07-06 Thread Mathias Bynens
Following the discussion in #whatwg and on https://bugzilla.mozilla.org/show_bug.cgi?id=744784 and https://bugs.ecmascript.org/show_bug.cgi?id=277, I’ve filed the following bugs asking to remove this non-standard extension as there don’t seem to be any strong compatibility requirements: *

Re: [whatwg] Proposal: Adding methods like getElementById and getElementsByTagName to DocumentFragments

2013-10-15 Thread Mathias Bynens
On 10 Oct 2013, at 15:05, Simon Pieters sim...@opera.com wrote: I've added CSS.escape(foo). https://dvcs.w3.org/hg/csswg/rev/09466af95185 Very useful, thanks. Here’s a polyfill for `CSS.escape`: https://github.com/mathiasbynens/CSS.escape Tests:

Re: [whatwg] HTTP status code from JavaScript

2014-05-25 Thread Mathias Bynens
On 25 May 2014, at 09:58, Tobie Langel tobie.lan...@gmail.com wrote: * Adding inline JS script slows down the page load. In that case, use a meta tag: meta name=http-status content=404 Then in JS: var status =

Re: [whatwg] brand-color meta extension

2014-06-26 Thread Mathias Bynens
On 26 Jun 2014, at 20:45, Domenic Denicola dome...@domenicdenicola.com wrote: I would like to reiterate that brand- is not a good prefix for this purpose. It has nothing to do with brands, and much more to do with the app or with system integration. Major +1 here, seeing as this feedback

Re: [whatwg] brand-color meta extension

2014-06-26 Thread Mathias Bynens
On 26 Jun 2014, at 22:37, Tab Atkins Jr. jackalm...@gmail.com wrote: On Thu, Jun 26, 2014 at 1:33 PM, Mathias Bynens mathi...@opera.com wrote: On 26 Jun 2014, at 22:24, Mathias Bynens mathi...@opera.com wrote: Interesting to see this would be only the second HTML attribute value to get

Re: [whatwg] apple-touch-icon

2014-07-28 Thread Mathias Bynens
On Sun, Jul 27, 2014 at 1:13 PM, Anne van Kesteren ann...@annevk.nl wrote: For link rel=icon we already define the /favicon.ico fallback. If a page lacks link rel=icon sizes we should probably also look at Apple's proprietary extension here given that it's quite widely adopted. Chrome supports

Re: [whatwg] apple-touch-icon

2014-07-29 Thread Mathias Bynens
On Mon, Jul 28, 2014 at 4:59 PM, John Mellor joh...@google.com wrote: Chrome 30 dropped support[1] for fetching apple-touch-icon-* from well known URLs, since the 404 pages that are usually returned were consuming 3-4% of all mobile bandwidth usage[2]. We're unlikely to reverse that. Good to

Re: [whatwg] apple-touch-icon

2014-07-31 Thread Mathias Bynens
On Wed, Jul 30, 2014 at 11:13 AM, Anne van Kesteren ann...@annevk.nl wrote: That would mean http://annevankesteren.com/robots.txt cannot have an icon, unless we revive the Link header somehow, but there wasn't much interest in that. Actually, there is now, at least on Google’s side, in the

Re: [whatwg] Canonical Image and Color

2014-08-26 Thread Mathias Bynens
On Tue, Aug 26, 2014 at 8:21 AM, Anne van Kesteren ann...@annevk.nl wrote: On Mon, Aug 25, 2014 at 8:59 PM, Mike tomshin...@yandex-team.ru wrote: 2) There is already a couple of standards or quasi-standads: - favicons (most promising seems to be the increasing of their size and svg

Re: [whatwg] getting rid of anonymizing redirects

2014-10-07 Thread Mathias Bynens
On Tue, Oct 7, 2014 at 2:06 PM, Anne van Kesteren ann...@annevk.nl wrote: On Tue, Oct 7, 2014 at 1:58 PM, Peter Lepeska bizzbys...@gmail.com wrote: Some web site developers use redirects to strip out referrer headers from requests issued from users clicking links on their site. This causes a

Re: [whatwg] Unicode - ASCII copy/paste fallback

2015-02-13 Thread Mathias Bynens
On Fri, Feb 13, 2015 at 1:18 PM, James M. Greene james.m.gre...@gmail.com wrote: In this case, you can use Unicode escape values by preceding them with a slash: OP’s question wasn’t about how to escape non-ASCII characters, but rather about what the copy/paste behavior should be in browsers.

Re: [whatwg] Using @type on code to specify the computer language

2015-05-09 Thread Mathias Bynens
There is a de facto standard here that is already supported by most syntax highlighting libraries, based on this part of the spec: https://html.spec.whatwg.org/multipage/semantics.html#the-code-element “There is no formal way to indicate the language of computer code being marked up. Authors who

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-25 Thread Mathias Bynens
On Thu, Jun 25, 2015 at 7:24 AM, Daniel Holbert dholb...@mozilla.com wrote: From my brief testing with my testcase above (Chrome 45 dev channel on linux, Edge on Win10, Safari 8 on Yosemite), it doesn't look like other browser support SVG favicons right now, though. FWIW, here’s the relevant