(state, nextTagName)
| 194 | if (state.context) state.context = state.context.prev; |
| 195 | } |
| 196 | function maybePopContext(state, nextTagName) { |
| 197 | var parentTagName; |
| 198 | while (true) { |
| 199 | if (!state.context) { |
| 200 | return; |
| 201 | } |
| 202 | parentTagName = state.context.tagName; |
| 203 | if (!Kludges.contextGrabbers.hasOwnProperty(parentTagName) || |
| 204 | !Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)) { |
| 205 | return; |
| 206 | } |
| 207 | popContext(state); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | function baseState(type, stream, state) { |
| 212 | if (type == "openTag") { |
no test coverage detected