10 |
# <textarea />, <a />, <select /> etc |
# <textarea />, <a />, <select /> etc |
11 |
|
|
12 |
import core |
import core |
13 |
|
from utils import XML |
14 |
from HTMLParser import HTMLParser |
from HTMLParser import HTMLParser |
15 |
from backwards_compatibility import * |
from backwards_compatibility import * |
16 |
|
|
18 |
def __repr__(self): |
def __repr__(self): |
19 |
return u'<PAX Document: %s>' % self.children |
return u'<PAX Document: %s>' % self.children |
20 |
|
|
21 |
|
def __xml__(self, ns_map): |
22 |
|
return XML(self.children) |
23 |
|
|
24 |
# get a namespace, if provided |
# get a namespace, if provided |
25 |
def split_ns(spec, default=u''): |
def split_ns(spec, default=u''): |
26 |
if ':' in spec: |
if ':' in spec: |