dataset-delete.html

PASSExpected9 of 9 subtests pass392 ms

Details

Test
/html/dom/elements/global-attributes/dataset-delete.html
Harness
OK

Subtests

StatusSubtestMessage
PASSDeleting element.dataset['foo'] should also remove an attribute with name 'data-foo' should it exist.
PASSDeleting element.dataset['fooBar'] should also remove an attribute with name 'data-foo-bar' should it exist.
PASSDeleting element.dataset['-'] should also remove an attribute with name 'data--' should it exist.
PASSDeleting element.dataset['Foo'] should also remove an attribute with name 'data--foo' should it exist.
PASSDeleting element.dataset['-foo'] should not remove an attribute with name 'data--foo' should it exist.
PASSDeleting element.dataset['-Foo'] should also remove an attribute with name 'data---foo' should it exist.
PASSDeleting element.dataset[''] should also remove an attribute with name 'data-' should it exist.
PASSDeleting element.dataset['à'] should also remove an attribute with name 'data-à' should it exist.
PASSDeleting element.dataset['foo'] should not throw if even if the element does now have an attribute with the name data-foo.