github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/inner_html/set.fql (about)

     1  LET url = @lab.cdn.dynamic
     2  LET doc = DOCUMENT(url, true)
     3  LET el = ELEMENT(doc, "#index")
     4  
     5  LET expected = "<span>This node was injected by Ferret</span>"
     6  INNER_HTML_SET(el, "<span>This node was injected by Ferret</span>")
     7  LET actual = INNER_HTML(el)
     8  
     9  WAIT(100)
    10  
    11  LET r1 = '(\s|\")'
    12  LET r2 = '(\n|\s|\")'
    13  
    14  RETURN T::EQ(REGEX_REPLACE(TRIM(actual), r2, ''), REGEX_REPLACE(expected, r1, ''))