This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29556 - "When a user agent is asked to clone an DOMPoint..."
Summary: "When a user agent is asked to clone an DOMPoint..."
Status: RESOLVED MOVED
Alias: None
Product: FXTF
Classification: Unclassified
Component: Geometry (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: sideshowbarker+geometry
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-04 14:59 UTC by Simon Pieters
Modified: 2018-04-15 17:41 UTC (History)
4 users (show)

See Also:


Attachments

Description Simon Pieters 2016-04-04 14:59:01 UTC
https://drafts.fxtf.org/geometry/#cloning

[[
When a user agent is asked to clone an DOMPointReadOnly, DOMPoint, DOMRectReadOnly, DOMRect, DOMQuad, DOMMatrixReadOnly or DOMMatrix object old, it must run the following steps, which return a new object of same type. These steps must be run atomically.

Create a new object new of the same type as old. Copy all member variable values from old to new.
Return new. It is the clone.
The above algorithm follows the “safe passing of structured data” [HTML5] definitions.
]]

Need to update this section in terms of https://html.spec.whatwg.org/multipage/infrastructure.html#safe-passing-of-structured-data
Comment 1 Dirk Schulze 2018-04-15 17:41:40 UTC
https://github.com/w3c/fxtf-drafts/issues/273