diff options
author | Donald Stufft <donald@stufft.io> | 2014-05-03 01:13:28 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2014-05-03 01:13:28 -0400 |
commit | 0e72f65bf4e5ea6b8fd17d02fe4cae0ba7da5113 (patch) | |
tree | 5c04afcabe3c7087e38b8114b19de437f2cf4ab3 /pip/_vendor/html5lib/constants.py | |
parent | bdef6cebfb4e92a388cf84ed55cbd4ead8ef269c (diff) | |
parent | 93098d0c6781dd7019dfa43d9030f14b28f1bf2d (diff) | |
download | pip-1.5.5.tar.gz |
Merge branch '1.5.X'1.5.5
Conflicts:
.travis/py34.sh
CHANGES.txt
PROJECT.txt
Diffstat (limited to 'pip/_vendor/html5lib/constants.py')
-rw-r--r-- | pip/_vendor/html5lib/constants.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pip/_vendor/html5lib/constants.py b/pip/_vendor/html5lib/constants.py index 1866dd78e..e7089846d 100644 --- a/pip/_vendor/html5lib/constants.py +++ b/pip/_vendor/html5lib/constants.py @@ -433,6 +433,24 @@ mathmlTextIntegrationPointElements = frozenset(( (namespaces["mathml"], "mtext") )) +adjustForeignAttributes = { + "xlink:actuate": ("xlink", "actuate", namespaces["xlink"]), + "xlink:arcrole": ("xlink", "arcrole", namespaces["xlink"]), + "xlink:href": ("xlink", "href", namespaces["xlink"]), + "xlink:role": ("xlink", "role", namespaces["xlink"]), + "xlink:show": ("xlink", "show", namespaces["xlink"]), + "xlink:title": ("xlink", "title", namespaces["xlink"]), + "xlink:type": ("xlink", "type", namespaces["xlink"]), + "xml:base": ("xml", "base", namespaces["xml"]), + "xml:lang": ("xml", "lang", namespaces["xml"]), + "xml:space": ("xml", "space", namespaces["xml"]), + "xmlns": (None, "xmlns", namespaces["xmlns"]), + "xmlns:xlink": ("xmlns", "xlink", namespaces["xmlns"]) +} + +unadjustForeignAttributes = dict([((ns, local), qname) for qname, (prefix, local, ns) in + adjustForeignAttributes.items()]) + spaceCharacters = frozenset(( "\t", "\n", |