diff --git a/src/dom-nodes/DOMTree.res b/src/dom-nodes/DOMTree.res index 9611fd51..460bd4df 100644 --- a/src/dom-nodes/DOMTree.res +++ b/src/dom-nodes/DOMTree.res @@ -8,15 +8,14 @@ type slotAssignmentMode = | @as("manual") Manual | @as("named") Named -type customStateSet = {} +type customStateSet = private {} /** Node is an interface from which a number of WebApiDOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. [See Node on MDN](https://developer.mozilla.org/docs/Web/API/Node) -TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(Node) -type rec node = { +type rec node = private { ...DOM.eventTarget, /** Returns the type of node. @@ -91,9 +90,8 @@ type rec node = { /** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. [See Element on MDN](https://developer.mozilla.org/docs/Web/API/Element) -TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(Element) and element = { +@editor.completeFrom(Element) and element = private { // Base properties from Node /** Returns the type of node. @@ -463,7 +461,7 @@ A minimal document object that has no parent. It is used as a lightweight versio [See DocumentFragment on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(DocumentFragment) and documentFragment = { +@editor.completeFrom(DocumentFragment) and documentFragment = private { // Base properties from Node /** Returns the type of node. @@ -560,7 +558,7 @@ TODO: mark as private once mutating fields of private records is allowed [See ShadowRoot on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(ShadowRoot) and shadowRoot = { +@editor.completeFrom(ShadowRoot) and shadowRoot = private { // Base properties from DocumentFragment // End base properties from DocumentFragment @@ -703,7 +701,7 @@ Any HTML element. Some elements directly implement this interface, while others [See HTMLElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(HTMLElement) and htmlElement = { +@editor.completeFrom(HTMLElement) and htmlElement = private { // Base properties from Element /** Returns the namespace. @@ -996,7 +994,7 @@ A