WordPress database error: [INSERT, UPDATE command denied to user '51213-2'@'10.10.20.44' for table 'wp_options']INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1714619798.4658510684967041015625', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)
Let me introduce you a new feature of Internet Explorer 11 which is available in your Windows 8.1 apps too : the MutationObserver<\/a>. This object lets you observe the changes on any HTML element of your DOM.<\/p>\n <\/p>\n You may already know these monitoring events available before and which are now no more supported :<\/p>\n They have been replaced by the MutationObserver in IE 11 because they have several drawbacks<\/strong>:<\/p>\n The MutationObserver fix these issues and is really easy to use<\/strong> :<\/p>\n Creating a mutation observer is easy as instantiating an object. The callback function takes 2 parameters : an object describing the change and the second one will be the MutationObserver. \/\/Creation of the observer Then you can observe any html element by calling the observe function on the observer. This function takes as a second parameter a json object with the “monitoring” options. For example, you can monitor only the addition\/removal of element on any of its children and any change of “class” : In the callback, you can explore the changes which is a list of the modifications. Each one has a type field and some properties (added nodes, old value, etc.) which let you know which change has been performed. changes.forEach(function (mutationRecord) {<\/p>\n console.log("Type of mutation: " + mutationRecord.type);<\/p>\n if ("attributes" === mutationRecord.type) { <\/p>\n This is a just a quick blog post of this good new API. You can find more information on these pages :<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Let me introduce you a new feature of Internet Explorer 11 which is available in your Windows 8.1 apps too : the MutationObserver. This object lets you observe the changes on any HTML element of…<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[14,46,47,30,34,25,53],"_links":{"self":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1511"}],"collection":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/comments?post=1511"}],"version-history":[{"count":8,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1511\/revisions"}],"predecessor-version":[{"id":1520,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1511\/revisions\/1520"}],"wp:attachment":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/media?parent=1511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/categories?post=1511"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/tags?post=1511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n
\n
\n
\n[js]function mutationObserverCallBack(changes, mutationObserver) {\/*…*\/ }<\/p>\n
\nvar observer = new MutationObserver(mutationObserverCallBack);[\/js]<\/p>\n
\n[js]
\nvar observer = new MutationObserver(mutationObserverCallBack);
\nobserver.observe(element, {
\n attributes: true,
\n attributeFilter: ["class"],
\n childList: true,
\n subtree: true,
\n});
\n[\/js]
\nThere is a lot of possible configuration and you can find a full list on this MSDN page<\/a>.<\/p>\n
\n[js]function mutationObserverCallBack(changes, mutationObserver) {<\/p>\n
\n console.log("Old attribute value: " + mutationRecord.oldValue);
\n }
\n });
\n}[\/js]<\/p>\nAdditionnal links<\/h4>\n
\n