diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-08-13 10:44:46 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-08-13 10:44:46 -0400 |
commit | 064439f3b2decfb55b4e118ac4d41851d13c4c6f (patch) | |
tree | da0e8007734a025df3e3d024a74a3bfb2f5f3e5a /bs4/__init__.py | |
parent | 020b385300c75e4c3ab0c45532de272b27945c5a (diff) |
* Fixed yet another problem with the html5lib tree builder, caused by
html5lib's tendency to rearrange the tree during
parsing. [bug=1189267]
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r-- | bs4/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py index ace72f1..75c1aaa 100644 --- a/bs4/__init__.py +++ b/bs4/__init__.py @@ -279,6 +279,7 @@ class BeautifulSoup(Tag): parent = parent or self.currentTag most_recent_element = most_recent_element or self._most_recent_element o.setup(parent, most_recent_element) + if most_recent_element is not None: most_recent_element.next_element = o self._most_recent_element = o |