node-blade icon indicating copy to clipboard operation
node-blade copied to clipboard

Parser should catch missing "attribute separator" between attributes

Open bminer opened this issue 11 years ago • 0 comments

img(src="/image.png"alt="")

throws a compilation error. AST looks like this:

AST:
 { doctypes: [],
  nodes:
   [ { type: 'tag',
       name: 'img',
       id: null,
       classes: [],
       attributes: { src: { escape: true, code: '"image.png"alt=""' } },
       children: [],
       line: 1,
       col: 1 } ] }

bminer avatar Jan 13 '14 19:01 bminer