Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/dom

Package Overview
Dependencies
Maintainers
21
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/dom - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

4

package.json
{
"name": "@wordpress/dom",
"version": "3.1.4",
"version": "3.1.5",
"description": "DOM utilities module for WordPress.",

@@ -37,3 +37,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "42a6dbdbf9c981e71ea4752c94e5642d6f6cac1d"
"gitHead": "c6e7eca347923b56c0117f8129f80eba6ac59f52"
}

@@ -17,3 +17,3 @@ # DOM

<a name="computeCaretRect" href="#computeCaretRect">#</a> **computeCaretRect**
### computeCaretRect

@@ -30,3 +30,3 @@ Get the rectangle for the selection in a container.

<a name="documentHasSelection" href="#documentHasSelection">#</a> **documentHasSelection**
### documentHasSelection

@@ -44,3 +44,3 @@ Check whether the current document has a selection. This checks for both

<a name="documentHasTextSelection" href="#documentHasTextSelection">#</a> **documentHasTextSelection**
### documentHasTextSelection

@@ -61,3 +61,3 @@ Check whether the current document has selected text. This applies to ranges

<a name="documentHasUncollapsedSelection" href="#documentHasUncollapsedSelection">#</a> **documentHasUncollapsedSelection**
### documentHasUncollapsedSelection

@@ -76,3 +76,3 @@ Check whether the current document has any sort of selection. This includes

<a name="focus" href="#focus">#</a> **focus**
### focus

@@ -82,3 +82,3 @@ Object grouping `focusable` and `tabbable` utils

<a name="getFilesFromDataTransfer" href="#getFilesFromDataTransfer">#</a> **getFilesFromDataTransfer**
### getFilesFromDataTransfer

@@ -95,3 +95,3 @@ Gets all files from a DataTransfer object.

<a name="getOffsetParent" href="#getOffsetParent">#</a> **getOffsetParent**
### getOffsetParent

@@ -114,3 +114,3 @@ Returns the closest positioned element, or null under any of the conditions

<a name="getPhrasingContentSchema" href="#getPhrasingContentSchema">#</a> **getPhrasingContentSchema**
### getPhrasingContentSchema

@@ -131,3 +131,3 @@ Get schema of possible paths for phrasing content.

<a name="getRectangleFromRange" href="#getRectangleFromRange">#</a> **getRectangleFromRange**
### getRectangleFromRange

@@ -144,3 +144,3 @@ Get the rectangle of a given Range.

<a name="getScrollContainer" href="#getScrollContainer">#</a> **getScrollContainer**
### getScrollContainer

@@ -157,3 +157,3 @@ Given a DOM node, finds the closest scrollable container node.

<a name="insertAfter" href="#insertAfter">#</a> **insertAfter**
### insertAfter

@@ -170,5 +170,5 @@ Given two DOM nodes, inserts the former in the DOM as the next sibling of

- `void`:
- `void`:
<a name="isEmpty" href="#isEmpty">#</a> **isEmpty**
### isEmpty

@@ -186,3 +186,3 @@ Recursively checks if an element is empty. An element is not empty if it

<a name="isEntirelySelected" href="#isEntirelySelected">#</a> **isEntirelySelected**
### isEntirelySelected

@@ -200,3 +200,3 @@ Check whether the contents of the element have been entirely selected.

<a name="isHorizontalEdge" href="#isHorizontalEdge">#</a> **isHorizontalEdge**
### isHorizontalEdge

@@ -214,3 +214,3 @@ Check whether the selection is horizontally at the edge of the container.

<a name="isNumberInput" href="#isNumberInput">#</a> **isNumberInput**
### isNumberInput

@@ -228,3 +228,3 @@ Check whether the given element is an input field of type number

<a name="isPhrasingContent" href="#isPhrasingContent">#</a> **isPhrasingContent**
### isPhrasingContent

@@ -245,3 +245,3 @@ Find out whether or not the given node is phrasing content.

<a name="isRTL" href="#isRTL">#</a> **isRTL**
### isRTL

@@ -258,7 +258,7 @@ Whether the element's text direction is right-to-left.

<a name="isTextContent" href="#isTextContent">#</a> **isTextContent**
### isTextContent
_Parameters_
- _node_ `Node`:
- _node_ `Node`:

@@ -269,3 +269,3 @@ _Returns_

<a name="isTextField" href="#isTextField">#</a> **isTextField**
### isTextField

@@ -285,3 +285,3 @@ Check whether the given element is a text field, where text field is defined

<a name="isVerticalEdge" href="#isVerticalEdge">#</a> **isVerticalEdge**
### isVerticalEdge

@@ -299,3 +299,3 @@ Check whether the selection is vertically at the edge of the container.

<a name="placeCaretAtHorizontalEdge" href="#placeCaretAtHorizontalEdge">#</a> **placeCaretAtHorizontalEdge**
### placeCaretAtHorizontalEdge

@@ -309,3 +309,3 @@ Places the caret at start or end of a given element.

<a name="placeCaretAtVerticalEdge" href="#placeCaretAtVerticalEdge">#</a> **placeCaretAtVerticalEdge**
### placeCaretAtVerticalEdge

@@ -321,3 +321,3 @@ Places the caret at the top or bottom of a given element.

<a name="remove" href="#remove">#</a> **remove**
### remove

@@ -332,5 +332,5 @@ Given a DOM node, removes it from the DOM.

- `void`:
- `void`:
<a name="removeInvalidHTML" href="#removeInvalidHTML">#</a> **removeInvalidHTML**
### removeInvalidHTML

@@ -349,3 +349,3 @@ Given a schema, unwraps or removes nodes, attributes and classes on HTML.

<a name="replace" href="#replace">#</a> **replace**
### replace

@@ -361,5 +361,5 @@ Given two DOM nodes, replaces the former with the latter in the DOM.

- `void`:
- `void`:
<a name="replaceTag" href="#replaceTag">#</a> **replaceTag**
### replaceTag

@@ -377,3 +377,3 @@ Replaces the given node with a new node with the given tag name.

<a name="safeHTML" href="#safeHTML">#</a> **safeHTML**
### safeHTML

@@ -390,3 +390,3 @@ Strips scripts and on\* attributes from HTML.

<a name="unwrap" href="#unwrap">#</a> **unwrap**
### unwrap

@@ -401,5 +401,5 @@ Unwrap the given node. This means any child nodes are moved to the parent.

- `void`:
- `void`:
<a name="wrap" href="#wrap">#</a> **wrap**
### wrap

@@ -413,5 +413,4 @@ Wraps the given node with a new node with the given tag name.

<!-- END TOKEN(Autogenerated API docs) -->
<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc