USING: multiline tools.test html5 ;
IN: html5.tests
-![[
+![===[
{ } [ "&" parse-html5 ] unit-test
+[[ <!DOCTYPE html>
+<html>
+<head>
+<title>Title</title>
+</head>
-]]
\ No newline at end of file
+<body>
+The content
+</body>
+
+</html>]] parse-html5
+
+
+]===]
\ No newline at end of file
[ entities-suffix-array query f like ]
[ last CHAR: ; = ] bi ;
-: temporary-buffer-attribute-on ( document -- )
- t >>temporary-buffer-attribute? drop ;
-
-: temporary-buffer-attribute-off ( document -- )
- f >>temporary-buffer-attribute? drop ;
-
ERROR: unknown-named-entity entity ;
: take-named-character ( document -- )
dup