Lines Matching refs:tag
39 - Putting the "name" attribute into the "id" attribute of the <tr> tag.
58 for tag in self.soup.findAll('tr'):
59 if tag.td and tag.td.h2 and tag.td.h2.a and tag.td.h2.a['name']:
60 #tag['id'] = tag.td.h2.a['name']
61 tag.string = tag.td.h2.a.next
62 tag.name = 'h2'
63 table_headers.append(tag)
68 for tag in table_headers:
69 print "Header tag: %s is %s" % (tag.name, tag.string.strip())
71 if tag.findPreviousSibling('tr') and tag.parent.name == 'table':
72 print "Splitting Table named %s" % tag.string.strip()
73 table = tag.parent
78 tag_index = table.contents.index(tag)
81 # Now move the <h2> tag to be in front of the <table> tag
82 assert tag.parent.name == 'table'
83 table = tag.parent
86 table_parent.insert(table_index, tag)
93 [tag.extract() for tag in header_tags]