classification
Title: Add concat functionality to ElementTree xpath find
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eli.bendersky, jjolly
Priority: normal Keywords: patch

Created on 2018-01-01 19:19 by jjolly, last changed 2018-01-12 18:37 by jjolly.

Files
File name Uploaded Description Edit
etree-concat.patch jjolly, 2018-01-01 19:19 Patch to add concat functionality to predicates in etree
Messages (1)
msg309344 - (view) Author: John Jolly (jjolly) * Date: 2018-01-01 19:19
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.
History
Date User Action Args
2018-01-12 18:37:36jjollysetnosy: + eli.bendersky
2018-01-01 19:19:06jjollycreate