Lines Matching refs:stack
98 private TagStack stack;
313 System.out.println("**** " + stack);
330 if ((!space) || (stack == null) || last.breaksFlow() ||
331 !stack.advance(dtd.pcdata)) {
391 * onto the tag stack. The attribute list is
436 stack = new TagStack(tag, stack);
443 * from the tag stack.
446 handleText(stack.tag);
448 if (omitted && !stack.elem.omitEnd()) {
449 error("end.missing", stack.elem.getName());
450 } else if (!stack.terminate()) {
451 error("end.unexpected", stack.elem.getName());
455 handleEndTag(stack.tag);
456 stack = stack.next;
457 recent = (stack != null) ? stack.elem : null;
463 String stackElement = stack.elem.getName();
477 TagStack s = stack;
490 (elemName.equals("meta") && stack != null) ||
528 // Deal with the empty stack
529 if (stack == null) {
530 // System.out.println("-- stack is empty");
540 if (stack.advance(elem)) {
572 String stackElemName = stack.elem.getName();
584 if (!strict && !insertTag && (stack.elem.getName() != elem.getName() ||
614 if (!insertTag && stack.terminate() && (!strict || stack.elem.omitEnd())) {
615 for (TagStack s = stack.next ; s != null ; s = s.next) {
617 while (stack != s) {
632 Element next = stack.first();
651 ContentModel content = stack.contentModel();
659 if (stack.excluded(e.getIndex())) {
691 // Check if the stack can be terminated. If so add the appropriate
695 if (stack.terminate() && (stack.elem != dtd.body) && (!strict || stack.elem.omitEnd())) {
696 // System.out.println("-- omitting end tag: " + stack.elem);
697 if (!stack.elem.omitEnd()) {
719 if (tag.breaksFlow() && (stack != null) && !stack.tag.breaksFlow()) {
726 for (TagStack s = stack ; s != null ; s = s.next) {
728 while (stack != s) {
746 for (; (stack != null) && (stack.tag.getElement() != dtd.body) ; stack = stack.next) {
747 handleEndTag(stack.tag);
749 if (stack == null) {
1148 error("eof.literal", stack.elem.getName());
1154 int i = textpos - (stack.elem.name.length() + 2), j = 0;
1159 (Character.toLowerCase(text[i]) == stack.elem.name.charAt(j++)));
1161 textpos -= (stack.elem.name.length() + 2);
1708 // If the stack is null, we're seeing end tags without any begin
1711 if (stack == null) {
1722 if (stack.pre) {
1732 // on the tag stack, there is no corresponding start
1733 // start tag to find. Hence do not touch the tag stack.
1750 // on the the stack. If we are seeing an
1769 String stackElem = stack.elem.getName();
1791 TagStack sp = stack;
1807 if (stack != sp &&
1817 while(stack.elem.omitEnd() && stack != sp) {
1820 if (stack.elem == elem) {
1833 while (stack != sp) {
1923 not put this tag on the stack. This is to deal
1967 if (stack != null) {
1968 stack.net = net;
2080 if ((stack != null) && stack.net) {
2118 if ((stack != null) && stack.pre) {
2139 if ((stack != null) && stack.pre) {
2154 if ((stack != null) && stack.pre) {
2244 while (stack != null) {
2262 for (; stack != null ; stack = stack.next) {
2263 handleEndTag(stack.tag);