(self, data)
| 1692 | return e |
| 1693 | |
| 1694 | def createTextNode(self, data): |
| 1695 | if not isinstance(data, str): |
| 1696 | raise TypeError("node contents must be a string") |
| 1697 | t = Text() |
| 1698 | t.data = data |
| 1699 | t.ownerDocument = self |
| 1700 | return t |
| 1701 | |
| 1702 | def createCDATASection(self, data): |
| 1703 | if not isinstance(data, str): |