<html>
<head>
<meta charset="windows-1251" />
</head>
<body>
<div title="поговорка" мама="yes" мыла="yes" папу="no" раму="yes"></div>
<script>
alert(
document.querySelector('[title="поговорка"]')
.outerHTML.match(/[а-яё]+="[^"]+"/g)
.filter(function(x){return !/"no"/.test(x)})
.join(" ")
.replace(/=[^ ]+/g, "")
)
</script>
</body>
</html>