Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/t/h/thedom-HEAD/thedom/Parser.py   thedom(Download)
            string = string.strip()
            if string:
                self.add(TextNode(string))
 
            if startTag == "<":
                    if tagName.startswith('!--'):
                        (content, end) = self.textTillString('-->')
                        self.add(TextNode('<' + rawTagName + ' ' + content.replace('--', '==') + end))
                        continue
                    else:
                        (content, end) = self.textTillString('>')
                        self.add(TextNode('<' + rawTagName + ' ' + content + end))
                        continue
                elif endedBy == "<" or not tagName:
                    self.add(TextNode("&lt;" + tagName))
 
 
                newTag = self.add(self.__class__(tag=tagName, parent=self))
 
                if endedBy in self.whiteSpace: