Skip to content

Fix VGDML middleware check for whitespace

Guilherme Lima requested to merge ref-celeritas into master

When not validating input against the XML schema, text and comment nodes remain in the DOM. This could result in DOMNode that were not DOMElement instances, leading to a crash in the whitespace check. Since only the whitespace/comment nodes are not elements, we can eliminate the whitespace check more effectively.

Merge request reports