1. IntelliFactory
  2. WebSharper
  3. Issues
Issue #36 resolved

HasAttribute returning

Anton Tayanovskyy
created an issue

Quote from: https://bugs.intellifactory.com/websharper/show_bug.cgi?id=505

The following code returns false for an element with the class we were looking for:

{{{ [<JavaScript>] let (|Class|_|) className (elem : Element) = if elem.HasAttribute "class" && (elem.GetAttribute "class").Contains className then Some elem else None }}}

Comments (2)

  1. Log in to comment