mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Updated patch to include things we discussed.
This commit is contained in:
@@ -32,4 +32,15 @@ describe("xml parser", () => {
|
||||
parser.parse("<element><>"&'</element>");
|
||||
assert.equal("<>\"&'", last_data);
|
||||
});
|
||||
|
||||
it("resolves greek letter entities in attributes", () => {
|
||||
parser.parse("<element text='Ω'>blah</element>");
|
||||
assert.equal("Ω", last_attrs.text);
|
||||
});
|
||||
|
||||
it("resolves entities in element text", () => {
|
||||
parser.parse("<element>Ω</element>");
|
||||
assert.equal("Ω", last_data);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user