jsx-dom-runtime
Advanced tools
Comparing version 0.43.0 to 0.44.0
@@ -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 |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73594
312
1880