aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/javascript_evaluator.rs
diff options
context:
space:
mode:
authorAndrei Volykhin <andrei.volykhin@gmail.com>2025-05-13 13:43:10 +0300
committerGitHub <noreply@github.com>2025-05-13 10:43:10 +0000
commit6468734aea0895d8e14ca5a99f0b11b070041187 (patch)
tree9d6c0dcdc143eccb2cea9c47ea0963bddd79562a /components/servo/javascript_evaluator.rs
parente4f62d5c16521063c928e9f23854a33bdf5f7d9f (diff)
downloadservo-6468734aea0895d8e14ca5a99f0b11b070041187.tar.gz
servo-6468734aea0895d8e14ca5a99f0b11b070041187.zip
svg: Add mock SVGImageElement interface (#36975)
Add mock SVGImageElement interface to fix TIMEOUT WPT tests which are related to ImageBitmap (html/canvas/*). https://svgwg.org/svg2-draft/embedded.html#InterfaceSVGImageElement Rationality of this change to fire event "error" on any attempt to fetch image resource on href attribute change to not block WPT tests execution. Some WPT tests use the legacy namespace attribute "xlink:href", so support for it was added to source code. https://svgwg.org/svg2-draft/linking.html#XLinkHrefAttribute - setAttributeNS("http://www.w3.org/1999/xlink", 'xlink:href', src); Testing: Covered by existed WPT tests - fetch/metadata/generated/svg-image* - html/canvas/element/manual/* - html/dom/idlharness.https.html - html/semantics/embedded-content/the-canvas-element/* - html/webappapis/scripting/events/event-handler-all-global-events.html - mozilla/interfaces.https.html Fixes: https://github.com/servo/servo/issues/35881 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
Diffstat (limited to 'components/servo/javascript_evaluator.rs')
0 files changed, 0 insertions, 0 deletions