diff options
author | Daniel Veillard <veillard@redhat.com> | 2012-05-11 12:38:23 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-05-11 12:38:23 +0800 |
commit | 39d027cdb74371d64f68dc488556be41e1d14546 (patch) | |
tree | e55a90b4e11edc8dda0174ed1481987f72ce3e41 /python | |
parent | 2c437da7f09528002c4ae5ab57b7620ed43733f4 (diff) | |
download | android_external_libxml2-39d027cdb74371d64f68dc488556be41e1d14546.tar.gz android_external_libxml2-39d027cdb74371d64f68dc488556be41e1d14546.tar.bz2 android_external_libxml2-39d027cdb74371d64f68dc488556be41e1d14546.zip |
Fix html serialization error and htmlSetMetaEncoding()
For https://bugzilla.gnome.org/show_bug.cgi?id=630682
The python tests were reporting errors, some of it was due to
a small change in case encoding, but the main one was about
htmlSetMetaEncoding(doc, NULL) being broken by not removing
the associated meta tag anymore
Diffstat (limited to 'python')
-rwxr-xr-x | python/tests/serialize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tests/serialize.py b/python/tests/serialize.py index 5b969a9e..91753e7f 100755 --- a/python/tests/serialize.py +++ b/python/tests/serialize.py @@ -96,7 +96,7 @@ str = doc.serialize("iso-8859-1", 1) if str != """<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Hello</title> </head> <body><p>hello</p></body> @@ -131,7 +131,7 @@ if str != """<html> str = root.serialize("iso-8859-1", 1) if str != """<html> <head> -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Hello</title> </head> <body><p>hello</p></body> |