Skip to content

.append() or .partial doesn't work with inputs #101

@shadowofsoul

Description

@shadowofsoul

I don't know if i'm doing it wrong or is a bug, but when i try to append a simple :

  map.class('formPayment').partial('<input type="hidden" name="token" value="EC-5EK42155LE6337258" />');
  map.class('formPayment').append('<input type="hidden" name="token" value="EC-5EK42155LE6337258" />');

i get:

  Error: Conflicting mappings for attribute class and value formPayment
  at closeTag (/node_modules/plates/lib/plates.js:85:15)
  at Array.sort (native)
  at compileMappings (/node_modules/plates/lib/plates.js:74:14)
  at Object.bind (/node_modules/plates/lib/plates.js:232:29)
  at Object.bind (/node_modules/plates/lib/plates.js:659:18)
  at Object.processHTML (/ut.js:21:22)
  at /main.js:531:28
  at fs.readFile (fs.js:176:14)
  at Object.oncomplete (fs.js:297:15)

there is any way i can fix this? also, there is a way to use an id and not a class to refer the object where the html should be added?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions