Skip to content

Commit dc95c5b

Browse files
committed
Changed processing instruction decorator to ?
1 parent 34925ae commit dc95c5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/XMLStringifier.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = class XMLStringifier
5959

6060
# strings to match while converting from JS objects
6161
convertAttKey: '@'
62-
convertPIKey: '!'
62+
convertPIKey: '?'
6363
convertTextKey: '#text'
6464
convertCDataKey: '#cdata'
6565
convertCommentKey: '#comment'

test/object.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ vows
6060
person:
6161
name: "John"
6262
'@age': 35
63-
'!pi': 'mypi'
63+
'?pi': 'mypi'
6464
'#comment': 'Good guy'
6565
'#cdata': 'well formed!'
6666
unescaped:

0 commit comments

Comments
 (0)