When using Promises, why can't triggers for resolve and reject be defined elsewhere in the codebase?  I don't understand why resolve and reject logic should be localized  where the promise is declared. Is this an oversight, or is there a be...
I tried to use document.querySelectorAll(), but IE8 throw error, that      Object doesn't support this property or method   var titleCheckBox = document.querySelectorAll("");   Here http://www.quirksmode.org/dom/w3c_core.html#t13 writte...
What can service workers do that web workers cannot? Or vice versa?  It seems that web workers are a subset of the functionality of service workers. Is this correct?...
A relative of mine who started to learn Web Development asked me this question.   Why <script src="min.js"></script> but <link rel="stylesheet" href="min.css"> why not <style href="min.css"><...
I'm trying to detect whether a custom element with a specific name was registered or not. Is there a way to make such check?  Or is there a way to get list of registered custom elements?  I do document.registerElement, but what else is there? Is...
I just started reading about svg and I came up with the following question  I am creating a simple svg with a text inside as shown below.   From my reading I understood that x and y of the text tag declares the position of the text inside the svg spa...
I'm wondering if there is any build-in support for the HTML5 Notification feature in Gecko browsers so far? Maybe some hidden developer thingy ?  I'm aware of WebKits window.webkitNotifications which works great, so, is there a Firefox implem...
In examples I've seen new Image() to create a new HTML image element but when I try new Div() there is no support. Is there a reason for this or any plan in the future to add it?  Example:   var image = new Image(); var div = new Div(); // error...
Apparently using __proto__ property is still the main way of manipulating prototype chains, even though this is not standards compliant and IE does not support it. Though you can also construct inheritance through the use of new constructor this seem...
I read through the W3C docs on this and I'm thinking that custom words come from custom grammar, but I tried going to this demo and in the console entered the following javascript:   recognition.grammars.addFromString('foo');   Which ran...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.