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

jsx-dom-runtime

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom-runtime - npm Package Compare versions

Comparing version 0.43.0 to 0.44.0

1

index.d.ts

@@ -387,3 +387,2 @@ /// <reference lib="dom" />

export interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
innerHTML?: string
accessKey?: string

@@ -390,0 +389,0 @@ class?: string

8

jsx-runtime/index.js

@@ -24,3 +24,3 @@ let appendChildren = (node, children) => {

let internalKeys = new Set(['ref', 'children', '__ns']);
let properties = new Set(['innerHTML', 'value']);
let properties = new Set(['value']);
let jsx = (key, props) => {

@@ -80,5 +80,5 @@ let val,

let parseFromString = html => {
return jsx('template', {
innerHTML: html
}).content;
const template = jsx('template', {});
template.innerHTML = html;
return template.content;
};

@@ -85,0 +85,0 @@ let Template = props => {

{
"name": "jsx-dom-runtime",
"version": "0.43.0",
"version": "0.44.0",
"description": "A tiny in 500 bytes library to JSX syntax templates for DOM",

@@ -5,0 +5,0 @@ "type": "module",

@@ -208,2 +208,4 @@ # jsx-dom-runtime

properties.add('textContent');
// https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
properties.add('innerHTML');
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume

@@ -217,2 +219,3 @@ properties.add('volume');

<span textContent="Hello, world!" />
<span innerHTML="<p>Hello, world!</p>" />
<audio

@@ -240,2 +243,3 @@ src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"

textContent?: string;
innerHTML?: string;
muted?: boolean;

@@ -242,0 +246,0 @@ volume?: number;

Sorry, the diff of this file is not supported yet

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