[Webkit-unassigned] [Bug 205923] New: document.querySelector doesn't work for xml documents
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 8 06:03:39 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=205923
Bug ID: 205923
Summary: document.querySelector doesn't work for xml documents
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cgarcia at igalia.com
CC: bburg at apple.com, koivisto at iki.fi
This is causing the WebDriver test imported/w3c/webdriver/tests/is_element_enabled/enabled.py::test_xml_always_not_enabled to fail, but because we fail to find the node first.
> element = session.find.css("note", all=False)
E NoSuchElementException: no such element (404):
body = {'using': 'css selector', 'value': 'note'}
err = <NoSuchElementException http_status=404>
method = 'POST'
response = <Response status=404 error=<NoSuchElementException http_status=404>>
self = <Session 2d4c898d-9ba1-40e7-867c-3c99b339dcdb>
url = 'session/2d4c898d-9ba1-40e7-867c-3c99b339dcdb/element'
This is because document.querySelector('note') is returning null.
The document is just:
<?xml version="1.0" encoding="utf-8"?>
<note></note>
Saving that to a file and opening it in both ff and chrome, I can get the valid node by calling document.querySelector('note') from the inspector console.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200108/1159fa57/attachment.htm>
More information about the webkit-unassigned
mailing list