Representative XML parser

  • All over the project:

                // Extract element name without the namespace prefix
                var tagName = el.tagName.split(":")[1];

    el is, expectably, plain old Element.

    There is no reason to use a prefix there; xmlns= would work there just fine (but break this parsing).

    There is no reason to use XML there either. It is just too entrenched by now to change.

Log in to reply

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.