Skip to content

Commit ee2dcab

Browse files
committed
change printDomNode to more html like as intended
1 parent e5934a7 commit ee2dcab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PrintDomTree.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ Attribute VB_Name = "PrintDomTree"
22
Option Explicit
33

44
Public Sub PrintNode(ByVal node As cdpDOMNode, Optional ByVal pad As String = "")
5-
Debug.Print pad & "<" & node.nodeName & "(" & node.nodeType & ") " & "name='" & node.localName & "' attributes:" & Concat(node.attributes) & IIf(node.childNodeCount > 0, "", " />")
5+
Debug.Print pad & "<" & node.nodeName & "(" & node.nodeType & ") " & "name='" & node.localName & "' attributes:" & Concat(node.attributes) & IIf(node.childNodeCount > 0, ">", " />")
66
If node.childNodeCount > 0 Then
77
Dim v As Variant
88
For Each v In node.children
99
PrintNode v, pad & " "
1010
Next v
11-
Debug.Print pad & "/>"
11+
Debug.Print pad & "</" & node.nodeName & ">"
1212
End If
1313
End Sub
1414

0 commit comments

Comments
 (0)