Remove ASCII-based escaping
This commit is contained in:
parent
a637a2edbc
commit
050c14209c
3 changed files with 19 additions and 55 deletions
|
@ -178,11 +178,7 @@
|
|||
(:data . "'<>")) ))
|
||||
(is (equal escaped-attrs-alist (attrs-alist (element-attrs (new-a)))))
|
||||
(let ((*escape-html* nil))
|
||||
(is (equal *a-attrs* (attrs-alist (element-attrs (new-a))))))
|
||||
(let ((*escape-html* :attr))
|
||||
(is (equal escaped-attrs-alist (attrs-alist (element-attrs (new-a))))))
|
||||
(let ((*escape-html* :ascii))
|
||||
(is (equal escaped-attrs-alist (attrs-alist (element-attrs (new-a))))))))
|
||||
(is (equal *a-attrs* (attrs-alist (element-attrs (new-a))))))))
|
||||
|
||||
(test escape-children
|
||||
(let ((a (new-a)))
|
||||
|
@ -191,15 +187,7 @@
|
|||
(is (string= "child'<>".html" (attr (element-attrs (third (element-children a))) :href)))
|
||||
(is (string= "child'<>\"" (first (element-children (third (element-children a))))))
|
||||
(is (string= (string (code-char 128)) (second (element-children (third (element-children a))))))
|
||||
(is (string= (string (code-char 128)) (fourth (element-children a)))))
|
||||
(let* ((*escape-html* :ascii)
|
||||
(a (new-a)))
|
||||
(is (string= "child text 1" (first (element-children a))))
|
||||
(is (string= "child text 2 <br> &" (second (element-children a))))
|
||||
(is (string= "child'<>".html" (attr (element-attrs (third (element-children a))) :href)))
|
||||
(is (string= "child'<>\"" (first (element-children (third (element-children a))))))
|
||||
(is (string= "€" (second (element-children (third (element-children a))))))
|
||||
(is (string= "€" (fourth (element-children a))))))
|
||||
(is (string= (string (code-char 128)) (fourth (element-children a))))))
|
||||
|
||||
(in-suite attr-access)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue