В хроме функция есть, просто не работает, код вроде без ошибок
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming XHTML 1.0 Strict Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>
window.onload = function() {
var element = document.documentElement, bubbles = false;
var observer = new WebKitMutationObserver(function (mutations) {
mutations.forEach(attrModified);
});
observer.observe(element, { attributes: true, subtree: bubbles });
function attrModified(mutation) {
var name = mutation.attributeName,
newValue = mutation.target.getAttribute(name),
oldValue = mutation.oldValue;
console.log(name, newValue, oldValue);
}
}
function doo(el) {
var some = document.getElementById('some')
//some.style.border = '1px solid red'
some.setAttribute('style', 'border: 1px solid red')
}
</script>
</head>
<body>
<button onclick="doo(this)">click me</button><div id="some"></div>
</body>
</html>
А в нужном браузере, rekonq, вобще нет этой функции