mirror of
https://github.com/servo/servo
synced 2026-05-14 10:56:44 +02:00
When running an XPath query, users supply a target result type (eg `XPathResult.NUMBER_TYPE`). When this type does match the return value of the query, then we need to convert to it. See https://searchfox.org/firefox-main/rev/ab5bf2401717970560597083d6ac72915bde2d89/dom/xslt/xpath/XPathResult.cpp#160 for the relevant part in gecko. Testing: This change adds a test Part of #34527 --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>