diff options
Diffstat (limited to 'testing/web-platform/tests/dom/nodes/encoding.py')
-rw-r--r-- | testing/web-platform/tests/dom/nodes/encoding.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/web-platform/tests/dom/nodes/encoding.py b/testing/web-platform/tests/dom/nodes/encoding.py new file mode 100644 index 0000000000..15edff7061 --- /dev/null +++ b/testing/web-platform/tests/dom/nodes/encoding.py @@ -0,0 +1,7 @@ +from html import escape + +from wptserve.utils import isomorphic_decode + +def main(request, response): + label = request.GET.first(b'label') + return u"""<!doctype html><meta charset="%s">""" % escape(isomorphic_decode(label)) |