Open
Bug 1624623
Opened 4 years ago
Updated 2 years ago
XPathNSResolver throws SyntaxError instead of NamespaceError
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: shvaikalesh, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15
Steps to reproduce:
WPT: https://github.com/web-platform-tests/wpt/pull/22384
If https://heycam.github.io/webidl/#call-a-user-objects-operation returns abrupt completion, both Safari and Chrome throw NamespaceError. Firefox throws SyntaxError.
Reporter | ||
Updated•4 years ago
|
Severity: normal → minor
Component: Untriaged → DOM: Bindings (WebIDL)
Depends on: 1624206
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Version: 76 Branch → Trunk
Comment 1•4 years ago
|
||
The exception is from https://searchfox.org/mozilla-central/rev/7908ce29657cfd623993046bd8e38664e1c0b28e/dom/xslt/xpath/XPathEvaluator.cpp#92-101. And the spec is not defined which error should be throw in this case, https://dom.spec.whatwg.org/#xpath.
Severity: minor → S3
status-firefox78:
--- → affected
status-firefox-esr68:
--- → affected
Component: DOM: Bindings (WebIDL) → DOM: Core & HTML
Priority: -- → P3
Comment 2•2 years ago
|
||
The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in
before you can comment on or make changes to this bug.
Description
•