Comparing version 5.0.0-next.103 to 5.0.0-next.104
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.0.0-next.103", | ||
"version": "5.0.0-next.104", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "types": "./types/index.d.ts", |
@@ -28,2 +28,5 @@ export const EACH_ITEM_REACTIVE = 1; | ||
/** List of elements that require raw contents and should not have SSR comments put in them */ | ||
export const RawTextElements = ['textarea', 'script', 'style', 'title']; | ||
/** List of Element events that will be delegated */ | ||
@@ -30,0 +33,0 @@ export const DelegatedEvents = [ |
@@ -107,2 +107,5 @@ import { DEV } from 'esm-env'; | ||
// @ts-expect-error | ||
var attributes = /** @type {Record<string, unknown>} **/ (element.__attributes ??= {}); | ||
for (key in next) { | ||
@@ -144,2 +147,3 @@ var value = next[key]; | ||
} else if (value == null) { | ||
attributes[key] = null; | ||
element.removeAttribute(key); | ||
@@ -146,0 +150,0 @@ } else if (key === 'style') { |
@@ -6,2 +6,3 @@ import { is_promise, noop } from '../shared/utils.js'; | ||
DOMBooleanAttributes, | ||
RawTextElements, | ||
disallowed_paragraph_contents, | ||
@@ -165,7 +166,7 @@ interactive_elements, | ||
if (!VoidElements.has(tag)) { | ||
if (tag !== 'textarea') { | ||
if (!RawTextElements.includes(tag)) { | ||
payload.out += BLOCK_OPEN; | ||
} | ||
children_fn(); | ||
if (tag !== 'textarea') { | ||
if (!RawTextElements.includes(tag)) { | ||
payload.out += BLOCK_CLOSE; | ||
@@ -172,0 +173,0 @@ } |
@@ -9,3 +9,3 @@ // generated during release, do not modify | ||
*/ | ||
export const VERSION = '5.0.0-next.103'; | ||
export const VERSION = '5.0.0-next.104'; | ||
export const PUBLIC_VERSION = '5'; |
Sorry, the diff of this file is too big to display
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
1930793
41565
269
22
62