Skip to content

Commit 15b4565

Browse files
author
Artem Danilov
committed
поправил проверку на аттрибут form
1 parent 7bec963 commit 15b4565

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/XMLSchema.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ const XMLSchema = class extends Map {
114114
const {formDefault} = this; if (!(localName in formDefault)) return
115115

116116
if (!force) {
117-
117+
118118
const {form} = node.attributes
119-
120-
if (form !== FORM_Q && formDefault [localName] !== FORM_Q) return
119+
120+
if (form !== FORM_Q || !form && formDefault [localName] !== FORM_Q) return
121121

122122
}
123123

0 commit comments

Comments
 (0)