MCPcopy Create free account
hub / github.com/melonjs/melonJS / parseXML

Function parseXML

packages/melonjs/tests/tmxutils.spec.js:117–119  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

115 // ---------------------------------------------------------------
116 describe("parse", () => {
117 function parseXML(str) {
118 return new DOMParser().parseFromString(str, "text/xml").documentElement;
119 }
120
121 it("parses element attributes", () => {
122 const xml = parseXML('<tileset firstgid="1" name="ground"/>');

Callers 1

tmxutils.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected