Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 5749ab1

Browse files
author
mikesamuel
committed
more cross browser fixes to prettify test.
1 parent 5e7113e commit 5749ab1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/prettify_test.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,10 @@ <h1>HTML using XMP</h1>
738738
var name = node.tagName.toLowerCase();
739739
out.push('\074', name);
740740
for (var i = 0; i < node.attributes.length; ++i) {
741+
var attr = node.attributes[i];
742+
if (!attr.specified) { continue; }
741743
out.push(' ');
742-
normalizedHtml(node.attributes[i], out);
744+
normalizedHtml(attr, out);
743745
}
744746
out.push('>');
745747
for (var child = node.firstChild; child; child = child.nextSibling) {

0 commit comments

Comments
 (0)