playwright/packages/playwright-core/src
Dmitry Gozman a8d4a8aa52
fix(text selector): ignore non-leading quote when parsing (#13170)
Previously, any unpaired quote in the text selector "escaped"
everything till the end of the selector string, and so any
subsequent chained selectors, including ">>" separator were ignored.

An example of misbehaving selector: `text=19" >> nth=1`.

Now, when text selector contains a non-leading quote, selector parser
does not assume it should escape ">>" separator and correctly
tokenizes all selectors from the chain.

Note that this behavior is a workaround for the fact that our
text selectors is somewhat poorly defined in this area. That said,
this workaround seems to be safe enough. It still does not work for
unpaired leading quotes like this: `text="19 >> nth=1`.
2022-03-30 09:33:32 -07:00
..
cli feat: detect docker version and Playwright version mismatch (#12806) 2022-03-25 14:45:53 -07:00
client chore: migrate html reporter to vite (#13116) 2022-03-28 18:21:19 -07:00
common chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
dispatchers chore: do not initialize full sessions for pages used in session restore (#12886) 2022-03-18 18:17:37 -07:00
grid chore: intercept socks proxy in the driver (#12021) 2022-02-13 14:03:47 -08:00
protocol feat(vrt): new option "caret" for taking screenshots (#13164) 2022-03-29 17:48:13 -07:00
remote chore: disambiguate internal flags (#12866) 2022-03-17 18:27:33 -07:00
server fix(text selector): ignore non-leading quote when parsing (#13170) 2022-03-30 09:33:32 -07:00
third_party chore: migrate trace-viewer and recorder to vite (#13076) 2022-03-25 14:12:00 -07:00
utils fix(registry): Fix support for generic-linux (#13129) 2022-03-28 14:50:56 -07:00
browserServerImpl.ts chore: disambiguate internal flags (#12866) 2022-03-17 18:27:33 -07:00
DEPS chore: migrate trace-viewer and recorder to vite (#13076) 2022-03-25 14:12:00 -07:00
inprocess.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
inProcessFactory.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
outofprocess.ts chore: use ipc transport for out-of-process driver (#11826) 2022-02-02 21:26:45 -08:00