[New-bugs-announce] [issue32476] Add concat functionality to ElementTree xpath find
John Jolly
report at bugs.python.org
Mon Jan 1 14:19:06 EST 2018
New submission from John Jolly <jjolly at suse.com>:
The current implementation of the xpath specification in ElementTree does not allow for predicates that may contain both an apostrophe and a quote. Either one or the other is allowed, but escaping (either string escaping using the backslash or html escaping) is not supported.
A simple solution would be to implement the xpath concat function for predicates. This would allow the combination of quote types in the predicate. Attached is a proposed patch for this fix.
----------
components: Library (Lib)
files: etree-concat.patch
keywords: patch
messages: 309344
nosy: jjolly
priority: normal
severity: normal
status: open
title: Add concat functionality to ElementTree xpath find
type: enhancement
versions: Python 3.7
Added file: https://bugs.python.org/file47360/etree-concat.patch
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32476>
_______________________________________
More information about the New-bugs-announce
mailing list