From e09b7824480ffc9df69b0d830c4b8adad3b000d1 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Sat, 27 Feb 2016 17:59:16 +0100 Subject: [PATCH] Move structured cloning out from under Common DOM Interfaces --- source | 113 +++++++++++++++++++++++++++------------------------------ 1 file changed, 54 insertions(+), 59 deletions(-) diff --git a/source b/source index 847d8fef455..8e773640058 100644 --- a/source +++ b/source @@ -7492,6 +7492,60 @@ interface DOMStringMap { +
+ +

Garbage collection

+ +

There is an implied strong reference from any IDL attribute that returns a + pre-existing object to that object.

+ +
+ +

For example, the window.document attribute means that there + is a strong reference from a Window object to its Document object. + Similarly, there is always a strong reference from a Document to any + descendant nodes, and from any node to its node document.

+ +
+ +
+ + + +

Namespaces

+ +

The HTML namespace is: http://www.w3.org/1999/xhtml

+ +

The MathML namespace is: http://www.w3.org/1998/Math/MathML

+ +

The SVG namespace is: http://www.w3.org/2000/svg

+ +

The XLink namespace is: http://www.w3.org/1999/xlink

+ +

The XML namespace is: http://www.w3.org/XML/1998/namespace

+ +

The XMLNS namespace is: http://www.w3.org/2000/xmlns/

+ +
+ +

Data mining tools and other user agents that perform operations + on content without running scripts, evaluating CSS or XPath + expressions, or otherwise exposing the resulting DOM to arbitrary + content, may "support namespaces" by just asserting that their DOM + node analogues are in certain namespaces, without actually exposing + the above strings.

+ +
+ +

In the HTML syntax, namespace prefixes + and namespace declarations do not have the same effect as in XML. + For instance, the colon has no special meaning in HTML element + names.

+ + +
+ +

Safe passing of structured data

Transferable objects

@@ -7509,8 +7563,6 @@ interface DOMStringMap {
  • ImageBitmap (defined in this specification) -
    -

    The following IDL block formalizes this:

    typedef (ArrayBuffer
    @@ -7537,12 +7589,6 @@ interface DOMStringMap {
       CanvasProxy object and how to transfer a
       MessagePort object are given in the relevant sections of this specification.

    -
    - -
    - -

    Safe passing of structured data

    -

    When a user agent is required to obtain a structured clone of a value, optionally with a transfer map, it must run the following algorithm, which either returns a separate value, or throws an exception. If a transfer map is provided, it consists of an association @@ -7888,57 +7934,6 @@ interface DOMStringMap {

    -
    - -

    Garbage collection

    - -

    There is an implied strong reference from any IDL attribute that returns a - pre-existing object to that object.

    - -
    - -

    For example, the window.document attribute means that there - is a strong reference from a Window object to its Document object. - Similarly, there is always a strong reference from a Document to any - descendant nodes, and from any node to its node document.

    - -
    - -
    - - - -

    Namespaces

    - -

    The HTML namespace is: http://www.w3.org/1999/xhtml

    - -

    The MathML namespace is: http://www.w3.org/1998/Math/MathML

    - -

    The SVG namespace is: http://www.w3.org/2000/svg

    - -

    The XLink namespace is: http://www.w3.org/1999/xlink

    - -

    The XML namespace is: http://www.w3.org/XML/1998/namespace

    - -

    The XMLNS namespace is: http://www.w3.org/2000/xmlns/

    - -
    - -

    Data mining tools and other user agents that perform operations - on content without running scripts, evaluating CSS or XPath - expressions, or otherwise exposing the resulting DOM to arbitrary - content, may "support namespaces" by just asserting that their DOM - node analogues are in certain namespaces, without actually exposing - the above strings.

    - -
    - -

    In the HTML syntax, namespace prefixes - and namespace declarations do not have the same effect as in XML. - For instance, the colon has no special meaning in HTML element - names.

    - -

    Semantics, structure, and APIs of HTML documents