jdk/src/share/classes/javax/swing/text/html/parser/Parser.java
changeset 23262 41f2413bba45
parent 21278 ef8a3a2a72f2
child 24494 67129b9360d2
child 24528 21c5bb3d76cc
equal deleted inserted replaced
23261:49117dc9e97c 23262:41f2413bba45
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  2087                     ch = readCh();
  2087                     ch = readCh();
  2088                     if ((stack != null) && stack.net) {
  2088                     if ((stack != null) && stack.net) {
  2089                         // null end tag.
  2089                         // null end tag.
  2090                         endTag(false);
  2090                         endTag(false);
  2091                         continue;
  2091                         continue;
       
  2092                     } else if (textpos == 0) {
       
  2093                         if (!legalElementContext(dtd.pcdata)) {
       
  2094                             error("unexpected.pcdata");
       
  2095                         }
       
  2096                         if (last.breaksFlow()) {
       
  2097                             space = false;
       
  2098                         }
  2092                     }
  2099                     }
  2093                     break;
  2100                     break;
  2094 
  2101 
  2095                   case -1:
  2102                   case -1:
  2096                     return;
  2103                     return;