github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/element/inner_html/set.fql (about) 1 LET url = @lab.cdn.static + '/simple.html' 2 LET doc = DOCUMENT(url) 3 LET el = ELEMENT(doc, "body") 4 5 LET expected = `<div><h1>Injected by Ferret</h1></div>` 6 7 INNER_HTML_SET(el, expected) 8 9 LET actual = INNER_HTML(el) 10 11 LET r1 = '(\s|\")' 12 LET r2 = '(\n|\s|\")' 13 14 T::EQ(REGEX_REPLACE(TRIM(actual), r2, ''), REGEX_REPLACE(expected, r1, '')) 15 16 RETURN NONE