<!DOCTYPE html>
<title>dataset: should exist and work on HTML and SVG elements, but not random elements</title>
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var div = document.createElement("div");
test(function() {
  assert_true(div.dataset instanceof DOMStringMap);
}, "HTML elements should have a .dataset");
test(function() {
  assert_false("foo" in d