URL: http://developer.mozilla.org/en/docs/Whitespace_in_the_DOM
A group of Functions found on Firefox's official website is equivalent to treewalker. With this function, you can easily implement all the functions of traversal API 2 in IE
This is a tough topic. In the getbasepath function, I am forced to use the exception object and regular expression matching to complete it. Due to the poor standard attributes of the exception object, I rely on private implementations of various
There is a saying in Buddhist Scriptures: Do not donate. This means that the effects of all your efforts may not be present or in the future, but it will make sense if you do. Our mentality is peaceful, and we will gradually promote it and gradually
In general, focus and blur events can be used only for form elements and links. Therefore, jquery is no longer used for many elements. However, as long as you set a tabindex attribute for the element node, non-form elements may also use these two
To cope with HTML5, it is more important to search for and match elements. Ff and Safari are the first to implement the matchesselector method, which is equivalent to jquery's is method. This is of great benefit to event proxy!
matchesselector
At last, some strange questions were discussed in the group, and some experts wanted to think about the two things. Although they failed, this spirit is very encouraging. So I decided to write an articleArticleTo introduce them.
Basically, all JS
JavaScript does not have its own event system. With the help of Dom's Event System, if Javascript objects are only involved, the system will stop. The following is a counterfeit product. Do not expect events to bubble up.
If (typeof array.
Article 1
Article 2
Article 3
Article 4
Article 5
Article 6
This is what I wrote last year (2009.11.02). At that time, I felt that I was constrained by regular expressions everywhere and decided to read all the posts related to
to achieve jquery's unwrap effect today, in other words, it is to use its child to kill its parent node. For efficiency, document fragments are used, and childnodes (return a nodelist) is used for children.
node set by situ zhengmei
First, set the target Website Based on the URL provided later to allow cross-origin access: Mozilla, W3C, and msdn.
The newly designed cross-origin scheme is extremely good. IE8 is an xdomainrequest, firefox3.5, safari4, chrome 2, and so on. It
I remember John resig said that the class library is used to block the differences between browsers, but his gettext function obviously cannot do this. Why don't I remind him? My English is really bad. I can still read it, but I want to write a few
ArticleDirectory
1. Document Type
2. Use Position: relative
3. Use display: inline
4. Do not use annotation nodes
5. For the floating effect, remember to use element a with the href attribute.
6. Do not use percentage in
You all like to use innerhtml to add content, but innerhtml is different in the two camps. In retrospect, ie will kill some blank spaces in the front of the tag, and all the labels in the tag will be capitalized. The dynamically added attributes
A special requirement for the insert operation. If this node is not added to the DOM tree, the node will be cloned. Otherwise, the node will be moved directly!
var isindomtree = (function () {var inefficiency = function (ELS, node) {for (VAR I = 0,
Article 1
Article 2
Article 3
Article 4
Article 5
Article 6
Problem: I did not add to the label I wrote. Now I want to replace them with regular expressions on the prepared page. For example: (-------> indicates a conversion
Event proxy for onchange events is the most complex. In ff and the latest versions of opera, it can bubble to the top-level Object window. For other standard browsers, because its event listener has three parameters, we set the last one to true, and
Document directory
SQL? What SQL?
Advantages and disadvantages of SQLite
Aesthetics and web developers
Indexeddb is a Web standard that is being developed for storing large amounts of structured data in browsers and for high-performance
I think this method is not a private Implementation of IE. It can achieve perfect copy in IE, And the other seems to be a little strong, it is similar to the replacenode naming method.
In IE, clonenode can copy all attributes, attributes, and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service