https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 76830ce46b3c14e3a9e5d1a7d2b391b335953cd6 authored by Rune Lillesveen on 22 March 2018, 01:57:52 UTC
[css-typed-om] Add support for column-span.
Tip revision: 76830ce
historical.html
<!doctype html>
<title>Custom Elements v0 features</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
test(() => {
  assert_false('registerElement' in document)
}, 'document.registerElement should not exist')

// These tests should pass as long as v0 isn't supported:
// v0: a 2nd string argument for createElement.
// v1: a ElementCreationOptions (dictionary) argument.
test(() => {
  try {
    const element = document.createElement('x', 'string')
    // If neither v0/v1 are supported, then there should be no is attribute.
    assert_false(element.hasAttribute('is'))
  } catch (e) {
    // If v1 is supported, then converting string to dictionary should throw.
    assert_throws(new TypeError, function() { throw e })
  }
}, 'document.createElement(localName, "string") should not work')

// createElementNS is analagous, but for the 3rd argument
test(() => {
  try {
    const element = document.createElementNS(null, 'x', 'string')
    // If neither v0/v1 are supported, then there should be no is attribute.
    assert_false(element.hasAttribute('is'))
  } catch (e) {
    // If v1 is supported, then converting string to dictionary should throw.
    assert_throws(new TypeError, function() { throw e })
  }
}, 'document.createElementNS(namespace, qualifiedName, "string") should not work')
</script>
back to top