@hirojs/dom-build
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -80,2 +80,4 @@ const DEFAULT_UNITS = { | ||
} | ||
} else if (k === 'innerHTML') { | ||
el.innerHTML = v; | ||
} else { | ||
@@ -82,0 +84,0 @@ el.setAttribute(k, v); |
{ | ||
"name": "@hirojs/dom-build", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Build DOM trees in Javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
const DEFAULT_UNITS = { | ||
@@ -81,2 +81,4 @@ fontSize : 'px', | ||
} | ||
} else if (k === 'innerHTML') { | ||
el.innerHTML = v; | ||
} else { | ||
@@ -132,3 +134,4 @@ el.setAttribute(k, v); | ||
), | ||
d("div", {style: {width: 100, height: 100, backgroundColor: 'red'}}, 0, null, void 0, false) | ||
d("div", {style: {width: 100, height: 100, backgroundColor: 'red'}}, 0, null, void 0, false), | ||
d("div", {innerHTML: '<b>HERE IS <i>SOME RAW</i> HTML</b>'}) | ||
); | ||
@@ -135,0 +138,0 @@ |
@@ -27,3 +27,4 @@ var d = require('..'); | ||
), | ||
d("div", {style: {width: 100, height: 100, backgroundColor: 'red'}}, 0, null, void 0, false) | ||
d("div", {style: {width: 100, height: 100, backgroundColor: 'red'}}, 0, null, void 0, false), | ||
d("div", {innerHTML: '<b>HERE IS <i>SOME RAW</i> HTML</b>'}) | ||
); | ||
@@ -30,0 +31,0 @@ |
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
10527
252