You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.
Thanks! @cjohansen is the assertion guy, but afaik the assertion system has no special handling of DOM elements, it just checks if theElement[prop] is identical to expectedObj[prop]. And:
var el = document.createElement("div");
el.setAttribute("data-foo", "foo");
el.getAttribute("data-foo") // "foo"
el["data-foo"] // undefined
It makes sense to me that we have special handling of DOM elements, so that we can easily assert things like data-xxx props.
Meh, not so sure about this situation. We actually do handle DOM elements specially when there are two of them. But for this case, I would perhaps suggest a custom assertion. How can we solve this in a general matter in samsam/referee?
When I use the match assertion to check for a
data
attribute the assertion fails:while this assertion passes
The text was updated successfully, but these errors were encountered: