Skip to content

Commit bb9fbc0

Browse files
committed
DomSupport: fix type constraints
1 parent 9392492 commit bb9fbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-support/src/main/scala/org/orbeon/web/DomSupport.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import scala.scalajs.js
1212

1313
object DomSupport {
1414

15-
implicit class DomElemOps[T <: dom.Element](private val elem: T) extends AnyVal {
15+
implicit class DomElemOps[T >: html.Element <: dom.Element](private val elem: T) extends AnyVal {
1616

1717
def querySelectorAllT(selectors: String): collection.Seq[T] =
1818
elem.querySelectorAll(selectors).asInstanceOf[dom.NodeList[T]]

0 commit comments

Comments
 (0)