als-document 0.1.0 → 0.1.1

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/document.js CHANGED
@@ -487,6 +487,7 @@ class Document {
487
487
  checkAttributes(props,propName,propValue,sign,addIt = 0) {
488
488
  if(props == undefined) return -1
489
489
  else {
490
+ if(props[propName] == undefined) addIt--
490
491
  if(propValue == '' && props[propName] == undefined) addIt--
491
492
  if(propValue.length>0 && props[propName] !== undefined) {
492
493
  if(sign == undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "als-document",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "virtual dom",
5
5
  "main": "document.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -2,10 +2,14 @@
2
2
 
3
3
  *If something wrong or not working properly, please write me to: sh.mashkanta@gmail.com*
4
4
 
5
+
5
6
  Document is a class which gets html as string and return new object with DOM tree.
6
7
  You can add or remove elements from DOM tree and modify each element.
7
8
  You can select elements and collections and read and modify them with given instruments.
8
9
 
10
+ **update**
11
+ * querySelector for attributes fixed
12
+
9
13
 
10
14
  ## Write and Read files
11
15
  Document have 2 static methods to read and write files.