File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -240,16 +240,7 @@ module.exports = {
240
240
} ,
241
241
inspect : function ( element , depth , output , inspect ) {
242
242
var elementName = element . nodeName . toLowerCase ( ) ;
243
- var startTag = '<' + elementName ;
244
- var attrs = getCanonicalAttributes ( element ) ;
245
-
246
- Object . keys ( attrs ) . forEach ( function ( key ) {
247
- if ( isBooleanAttribute ( key ) ) {
248
- startTag += ' ' + key ;
249
- } else {
250
- startTag += ' ' + key + '="' + attrs [ key ] . replace ( / & / g, '&' ) . replace ( / " / g, '"' ) + '"' ;
251
- }
252
- } ) ;
243
+ var startTag = stringifyStartTag ( element ) ;
253
244
254
245
var inspectedChildren = [ ] ;
255
246
if ( elementName === 'script' ) {
@@ -273,7 +264,6 @@ module.exports = {
273
264
return width > 50 || o . height > 1 ;
274
265
} ) ;
275
266
276
- startTag += '>' ;
277
267
output . code ( startTag , 'html' ) ;
278
268
if ( element . childNodes . length > 0 ) {
279
269
You can’t perform that action at this time.
0 commit comments