
Security News
OpenClaw Advisory Surge Highlights Gaps Between GHSA and CVE Tracking
A recent burst of security disclosures in the OpenClaw project is drawing attention to how vulnerability information flows across advisory and CVE systems.
html-element-size
Advanced tools
Helper function to get size of unvisible HTML element or HTML element not attached to DOM
Helper function to get size of unvisible HTML element or HTML element not attached to DOM.
npm install html-element-size --save
require with Node.js:
var htmlElementSize = require('html-element-size');
in browser include dist/html-element-size.js or dist/html-element-size.min.js script:
var htmlElementSize = window.htmlElementSize;
and then
var size = htmlElementSize(document.querySelector('.my-element'), {
removeClass: 'my-element-hidden',
addClass: 'my-element-some-class'
});
console.log(size); // => { width: 200; height: 100 }
In order to build library run:
npm run build
Run tests:
npm test
Run tests coverage:
npm run test:coverage
Before making a pull request, please, be sure that your changes are rebased to develop branch.
FAQs
Helper function to get size of unvisible HTML element or HTML element not attached to DOM
The npm package html-element-size receives a total of 1 weekly downloads. As such, html-element-size popularity was classified as not popular.
We found that html-element-size demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A recent burst of security disclosures in the OpenClaw project is drawing attention to how vulnerability information flows across advisory and CVE systems.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.