Merge pull request #43 from TrueCommerce/xml-tree-fixes

Fix Node Clicks
This commit is contained in:
Josh Johnson 2016-02-20 12:44:55 -05:00
commit aa1143f343
1 changed files with 3 additions and 2 deletions

View File

@ -139,6 +139,7 @@ export class XmlTreeService {
/* 1px */
}
</style>
<script>function noop(){};</script>
</head>
<body>
`;
@ -165,12 +166,12 @@ export class XmlTreeService {
if (node.attributes) {
for (let i = 0; i < node.attributes.length; i++) {
html += `<li class="xml xml-attribute"><a href="">${node.attributes.item(i).localName} = '${node.attributes.item(i).value}'</a></li>`;
html += `<li class="xml xml-attribute"><a href="javascript:noop()">${node.attributes.item(i).localName} = '${node.attributes.item(i).value}'</a></li>`;
}
}
if (!node.childNodes && node.textContent) {
html += `<li class="xml xml-text"><a href="">${node.textContent}</a></li>`;
html += `<li class="xml xml-text"><a href="javascript:noop()">${node.textContent}</a></li>`;
}
if (node.childNodes) {