close #8
don't pass user input to innerHTML #42
adb/issue-8 into master @ -120,3 +131,1 @@
viewBox="0 -4 32 32" width="20" height="20" fill="white" stroke="white" stroke-width="1">
<path d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 4V6H15V4H9Z"></path>
</svg></button>`;
const deleteIcon = fromHTML(
mmmh just realized the code is using tabs instead of space, causing annoyances at the time to review PRs, it is better if they are removed in a next PR, or we use a code formatter to make it easy to integrate new changes without disrupting the current code format convention adopted in the project
yeah, @WofWca and me are also a bit annoyed by the tabs, did not change yet, but are planning to do so, somehow
if not too hard, maybe you can adapt your pr for now, at least the parts that are "inlined"
nice, i am too tired to review this just now, however :)
I tried to use tabs, should be easier to compare now
great, lgtm and also tested a bit
@ -123,0 +135,4 @@
const form = h(
'form', {id: item.guid + '-form', class: 'AppUpdate AppListItemForm'},
h('input', {class: 'AppListItemUpdateField AppListItemField', type: 'text', maxlength: 200, value: oldText, autofocus: ''}),
i was wondering, if a boolean attribute, that is true by only its presence in a tag (like <input ... autofocus>) is really set by setElement('autofocus', '') where '' will evaluate to false - but indeed, this is the approach recommended by eg. mozilla: https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?