File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/scala/com/raquo/domtestutils/matching Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,13 @@ class TestableMathMlAttr[V](
2020 private [domtestutils] def nodeAttrIs (maybeExpectedValue : Option [V ])(node : dom.Node ): MaybeError = {
2121 node match {
2222
23- case (element : dom.MathMLElement ) =>
24- val maybeActualValue = getAttr(element)
23+ // #TODO JSDOM does not implement MathML so...
24+ // - https://github.com/jsdom/jsdom/issues/3515
25+ // - Given that, testing it is kinda useless, but at least we can test the Laminar parts / types...
26+ //
27+ // case element: dom.MathMLElement => // dom.MathMLElement class does not exist in JSDOM
28+ case element if element.namespaceURI == " http://www.w3.org/1998/Math/MathML" =>
29+ val maybeActualValue = getAttr(element.asInstanceOf [dom.MathMLElement ])
2530 (maybeActualValue, maybeExpectedValue) match {
2631
2732 case (Some (actualValue), Some (expectedValue)) =>
You can’t perform that action at this time.
0 commit comments