@itrocks/template 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/template.js CHANGED
@@ -617,7 +617,7 @@ class Template {
617
617
  // end of attribute value
618
618
  if (shortQuote ? (char === quote) : quote.includes(char)) {
619
619
  const attributeValue = this.source.substring(position, this.index);
620
- if (inInput && (hasTypeSubmit === undefined)) {
620
+ if (inInput && !hasTypeSubmit) {
621
621
  hasTypeSubmit = (attributeChar === 't') && (attributeValue[0] === 's')
622
622
  && (attributeName === 'type') && (attributeValue === 'submit');
623
623
  }
package/esm/template.js CHANGED
@@ -612,7 +612,7 @@ export default class Template {
612
612
  // end of attribute value
613
613
  if (shortQuote ? (char === quote) : quote.includes(char)) {
614
614
  const attributeValue = this.source.substring(position, this.index);
615
- if (inInput && (hasTypeSubmit === undefined)) {
615
+ if (inInput && !hasTypeSubmit) {
616
616
  hasTypeSubmit = (attributeChar === 't') && (attributeValue[0] === 's')
617
617
  && (attributeName === 'type') && (attributeValue === 'submit');
618
618
  }
package/package.json CHANGED
@@ -60,5 +60,5 @@
60
60
  "test": "jest"
61
61
  },
62
62
  "types": "./esm/template.d.ts",
63
- "version": "0.0.20"
63
+ "version": "0.0.21"
64
64
  }