I'm a bit confused with Javascript Typed Arrays.  What I have are several Float32Array s, that have no concat method. I don't know how many are them in advance, btw. I'd like to concatenate them all inside another Float32Array, but:   as...
I'm trying to figure out how to reproduce the behavior of the "border-radius" css property into an HTML canvas.   So i've already done something in Javascript in order to compute the correct borders of a given shape, using a specific...
I was working on a web application when I noticed some peculiar behavior. I have an element with styles applied via the JavaScript style property. Afterwards, I tried to remove all of the styles applied on the element with removeAttribute("style&...
If I have:  var test = {toString: function(){alert("evil code"); return "test";}};   how can I convert test to a string? without calling test.toString() and without using a typeof x == "string" check since I want to allow non...
Recently I was looking into Firefox Add-on Builder SDK sources, and stumbled on such constants declaration:  const { getCodeForKey, toJSON } = require("../../keyboard/utils");   I could find information about CommonJS Modules, but left part o...
I've been looking over the docs at developer.mozilla.org and the Apple dev docs but I'm not able to find documentation that explains whether or not you can programatically determine if a specific HTML tag supports a given eventListener.  Like...
I'd like to to know which interface can be used to get the visit count of each link in firefox's bookmarks and history for developing an extension  I've tried using nav-history-service to get the links for bookmarks and history but can...
IE has attribute readyState in document object, that indicates current state, e.g. "loading", "complete" etc.  Is there any way to find current loading state of document in Mozilla-based browsers? I'm aware of DOMContentLoaded eve...
Background Info  A bug exists currently in IE9 where it thinks that the NodeFilter property of the createTreeWalker method is a callback function instead of an object containing a callback function.  In a call like this:  document.createTreeWalker(do...
I  am able to highlight the text on the HTML page(rendered through gtkmozembed), which is selected, like below.      var range, sel;     if (window.getSelection) {         sel = window.getSelection();         if (sel.getRangeAt) {           range = s...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.