summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS.txt3
-rw-r--r--bs4/testing.py8
2 files changed, 6 insertions, 5 deletions
diff --git a/NEWS.txt b/NEWS.txt
index bcffd61..4134e91 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,7 +1,8 @@
= 4.0.0b8 (20110224) =
* All tree builders now preserve namespace information in the
- documents they parse.
+ documents they parse. If you use the html5lib parser or lxml's XML
+ parser, you can access the namespace URL for a tag as tag.namespace.
However, there is no special support for namespace-oriented
searching or tree manipulation. When you search the tree, you need
diff --git a/bs4/testing.py b/bs4/testing.py
index d7b01aa..13a7b5a 100644
--- a/bs4/testing.py
+++ b/bs4/testing.py
@@ -205,12 +205,12 @@ class HTMLTreeBuilderSmokeTest(object):
markup = b'<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:svg="http://www.w3.org/2000/svg"><head></head><body><mathml:msqrt>4</mathml:msqrt><b svg:fill="red"></b></body></html>'
soup = self.soup(markup)
- self.assertEquals(markup, soup.encode())
+ self.assertEqual(markup, soup.encode())
html = soup.html
- self.assertEquals('http://www.w3.org/1999/xhtml', soup.html['xmlns'])
- self.assertEquals(
+ self.assertEqual('http://www.w3.org/1999/xhtml', soup.html['xmlns'])
+ self.assertEqual(
'http://www.w3.org/1998/Math/MathML', soup.html['xmlns:mathml'])
- self.assertEquals(
+ self.assertEqual(
'http://www.w3.org/2000/svg', soup.html['xmlns:svg'])
#