<title param="1" param="2"></title>
{ nodeName: 'title',
tagName: 'title',
attrs: [ { name: 'param', value: '1' } ],
namespaceURI: 'http://www.w3.org/1999/xhtml',
childNodes: [],
parentNode:
{ nodeName: '#document-fragment',
quirksMode: false,
childNodes: [ [Circular] ] } }
As you can see, in output DOM there is no any info about the second duplicate attribute param="2"
!
Yes, I know that there is not a real and global problem! But in my task this handling is really vital!
Can you handle this situation, I would like to receive this in output DOM:
{ nodeName: 'title',
tagName: 'title',
attrs: [ { name: 'param', value: '1' },
{ name: 'param', value: '2' } ],
namespaceURI: 'http://www.w3.org/1999/xhtml',
childNodes: [],
parentNode:
{ nodeName: '#document-fragment',
quirksMode: false,
childNodes: [ [Circular] ] } }