diff --git a/microdata.py b/microdata.py
index 906223c..6226ed7 100755
--- a/microdata.py
+++ b/microdata.py
@@ -209,6 +209,8 @@ def _text(e):
chunks = []
if e.nodeType == e.TEXT_NODE:
chunks.append(e.data)
+ elif e.tagName == 'script':
+ return ''
for child in e.childNodes:
chunks.append(_text(child))
return ''.join(chunks)
diff --git a/test-data/example.html b/test-data/example.html
index fbc1559..79eaf50 100644
--- a/test-data/example.html
+++ b/test-data/example.html
@@ -15,6 +15,9 @@
20341 Whitworth Institute
405 N. Whitworth
+
Seattle,
WA
diff --git a/test.py b/test.py
index 699b5d1..dc00a9c 100644
--- a/test.py
+++ b/test.py
@@ -41,6 +41,9 @@ def test_parse(self):
self.assertEqual(item.address.itemtype, [URI("http://schema.org/PostalAddress")])
self.assertTrue(item.address.addressLocality, "Seattle")
+ #