| 42 | |
| 43 | |
| 44 | Text* Text::splitText(unsigned long offset) |
| 45 | { |
| 46 | Node* pParent = parentNode(); |
| 47 | if (!pParent) throw DOMException(DOMException::HIERARCHY_REQUEST_ERR); |
| 48 | int n = length() - offset; |
| 49 | Text* pNew = ownerDocument()->createTextNode(substringData(offset, n)); |
| 50 | deleteData(offset, n); |
| 51 | pParent->insertBefore(pNew, nextSibling())->release(); |
| 52 | return pNew; |
| 53 | } |
| 54 | |
| 55 | |
| 56 | const XMLString& Text::nodeName() const |
nothing calls this directly
no test coverage detected