docs: void popStackToClose(String... elNames) {
          for (int pos = stack.size() -1; pos >= 0; pos--) {
              Element next = stack.get(pos);
              stack.remove(pos);
              if (inSorted(next.normalName(), elNames))
                  break;
          }
      }