forked from campiaperti/infra
Uses the right method setAttribute.
Works better, and the html elements get their attributes.
This commit is contained in:
parent
0bc3a836fc
commit
d20760f40d
1 changed files with 2 additions and 2 deletions
|
@ -297,8 +297,8 @@
|
|||
|
||||
while( matchesClass = mardownClassRegex.exec( classes ) ) {
|
||||
console.log("attr='" + matchesClass[1] + "'='" + matchesClass[2] + "'");
|
||||
element.parentNode.attributes[matchesClass[1]] = matchesClass[2];
|
||||
console.log("=>'" + element.parentNode.attributes[matchesClass[1]] + "'");
|
||||
element.parentNode.setAttribute(matchesClass[1], matchesClass[2]);
|
||||
console.log("=>'" + element.parentNode.attributes[matchesClass[1]].nodeValue + "'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue