chromium/third_party/blink/web_tests/fast/dom/Document/xml-document-focus.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
</head>
<body>
<input id="testElement"></input>
<script>
test(() => {
  assert_not_equals(document.__proto__, HTMLDocument.prototype);
  assert_equals(document.__proto__, XMLDocument.prototype);
  assert_true(document.hasFocus());
  assert_equals(document.activeElement, document.body);
  var testElement = document.getElementById('testElement');
  testElement.focus();
  assert_equals(document.activeElement, testElement);
  assert_true(document.hasFocus());
}, "Focus management API is available to XML documents.");
</script>
</body>
</html>