Skip to content

Commit

Permalink
Check for existence of HTMLDetailsElement instead of ua
Browse files Browse the repository at this point in the history
So that when Edge implements details the test wouldn't break
  • Loading branch information
muan committed Oct 13, 2018
1 parent 65c911d commit d7a265b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test "summary is focusable", (assert) ->
done = assert.async()
summary = getElement("summary")
defer ->
if navigator.userAgent.match(/Trident|Edge/)
if (typeof HTMLDetailsElement is "undefined")
assert.ok summary.hasAttribute("tabindex")
assert.ok summary.hasAttribute("role")
summary.focus()
Expand Down

0 comments on commit d7a265b

Please sign in to comment.