Title: Add concat functionality to ElementTree xpath find
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.7
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.

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.
Date User Action Args
2018-01-12 18:37:36jjollysetnosy: + eli.bendersky
2018-01-01 19:19:06jjollycreate