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...
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...
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 am wondering about this topic for quite a while. The methods in question are the following:   getElementsByTagName getElementsByClassName getElementsByName querySelectorAll   As far as I know, those DOM methods are the only methods which are able t...
The problem I am having is that given an input element with a maxlength that is much wider than the element's width (as set in its style), and, given a value that is wider than the element's width, how can I get the element to "scroll"...
I'm getting more into jQuery and so have set up a HTML/Javascript/CSS base site which I use for all my tests.  Since these tests will eventually turn into PHP and ASP.NET MVC websites, I want to use this opportunity to get the basics down right a...
I'm writing a gesture/action library that also manages event listeners and triggering. I have implemented my lib to support gesture objects setting passive listeners via an API that looks like this: this.on('touchstart.passive', this.star...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.