You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto xml = `<?xml version="1.0" encoding="UTF-8"?><tag></tag>`;
auto domBuilder = lexer(xml).parser().cursor().domBuilder();
domBuilder.buildRecursive();
auto dom = domBuilder.getDocument();
assert(dom.childNodes.length == 1); // length is actually 0
This succeeds
auto xml = `<?xml version="1.0" encoding="UTF-8"?><tag/>`;
auto domBuilder = lexer(xml).parser().cursor().domBuilder();
domBuilder.buildRecursive();
auto dom = domBuilder.getDocument();
assert(dom.childNodes.length == 1);
as does this
auto xml = `<?xml version="1.0" encoding="UTF-8"?><tag>foo</tag>`;
auto domBuilder = lexer(xml).parser().cursor().domBuilder();
domBuilder.buildRecursive();
auto dom = domBuilder.getDocument();
assert(dom.childNodes.length == 1);
Also, adding attributes to the opening tag in the first example has no effect. It still fails.
So, something funny is going on when there's an open and closing tag with nothing between them, and attributes don't seem to have any impact on what's going on.
The text was updated successfully, but these errors were encountered:
Kozzi11
pushed a commit
to Kozzi11/experimental.xml
that referenced
this issue
Jul 27, 2017
This test fails
This succeeds
as does this
Also, adding attributes to the opening tag in the first example has no effect. It still fails.
So, something funny is going on when there's an open and closing tag with nothing between them, and attributes don't seem to have any impact on what's going on.
The text was updated successfully, but these errors were encountered: