(self, data)
| 1700 | return t |
| 1701 | |
| 1702 | def createCDATASection(self, data): |
| 1703 | if not isinstance(data, str): |
| 1704 | raise TypeError("node contents must be a string") |
| 1705 | c = CDATASection() |
| 1706 | c.data = data |
| 1707 | c.ownerDocument = self |
| 1708 | return c |
| 1709 | |
| 1710 | def createComment(self, data): |
| 1711 | c = Comment(data) |