aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/xmlns-xml-default-prefix-attribute.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/sax/test/xmlns-xml-default-prefix-attribute.js')
-rw-r--r--node_modules/sax/test/xmlns-xml-default-prefix-attribute.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/node_modules/sax/test/xmlns-xml-default-prefix-attribute.js b/node_modules/sax/test/xmlns-xml-default-prefix-attribute.js
new file mode 100644
index 000000000..e41f21875
--- /dev/null
+++ b/node_modules/sax/test/xmlns-xml-default-prefix-attribute.js
@@ -0,0 +1,36 @@
+require(__dirname).test(
+ { xml : "<root xml:lang='en'/>"
+ , expect :
+ [ [ "attribute"
+ , { name: "xml:lang"
+ , local: "lang"
+ , prefix: "xml"
+ , uri: "http://www.w3.org/XML/1998/namespace"
+ , value: "en"
+ }
+ ]
+ , [ "opentag"
+ , { name: "root"
+ , uri: ""
+ , prefix: ""
+ , local: "root"
+ , attributes:
+ { "xml:lang":
+ { name: "xml:lang"
+ , local: "lang"
+ , prefix: "xml"
+ , uri: "http://www.w3.org/XML/1998/namespace"
+ , value: "en"
+ }
+ }
+ , ns: {}
+ , isSelfClosing: true
+ }
+ ]
+ , ["closetag", "root"]
+ ]
+ , strict : true
+ , opt : { xmlns: true }
+ }
+)
+