Bug 180191

Summary: WebDriver: link and partial links queries don't work in xhtml documents
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch bburg: review+

Carlos Garcia Campos
Reported 2017-11-30 05:39:18 PST
We convert the queries to use xpath, which works for html documents, but it doesn't work for xhtml. In case of xhtml we would need to provide a namespace resolver and elements would need to be prefixed with xhtml: I would be a lot easier to simply iterate the link elements and copare the text.
Attachments
Patch (4.36 KB, patch)
2017-11-30 05:42 PST, Carlos Garcia Campos
bburg: review+
Carlos Garcia Campos
Comment 1 2017-11-30 05:42:47 PST
Blaze Burg
Comment 2 2017-11-30 15:53:29 PST
Comment on attachment 327971 [details] Patch r=me Oh well for trying to be clever!
Carlos Garcia Campos
Comment 3 2017-12-01 01:51:03 PST
Radar WebKit Bug Importer
Comment 4 2017-12-01 01:52:23 PST
Note You need to log in before you can comment on or make changes to this bug.