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

Eventually ES6 template strings [1] will make this awesome, as you'll do




or even


But someone has to write these functions (css and/or qs) and there's no point in creating standard versions until template strings are actually in browsers. (Well, modulo transpilers.) In the meantime a CSS escaper function would be great and could be used to much more easily prolyfill such template string functions, or be useful independently. So, uh, +1 to that idea.


Received on Thursday, 10 October 2013 00:50:33 UTC