diff --git a/.gitignore b/.gitignore index 72f9d48..cd47245 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ server.js chromedriver.log *.baseline *.iml -.idea/ \ No newline at end of file +.idea/ +.DS_Store diff --git a/tests/cases/child-textnodes.html b/tests/cases/child-textnodes.html new file mode 100644 index 0000000..ea5cafe --- /dev/null +++ b/tests/cases/child-textnodes.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Inline text in the top element</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <script type="text/javascript" src="../test.js"></script> + <style> + span { + color:blue; + } + p { + background-color: green; + } + </style> + + </head> + <body> + Some inline text <span> followed by text in span </span> followed by more inline text. + <p>Then a block level element.</p> + Then more inline text. + </body> +</html>