Lines Matching refs:currentToken
27 * self.currentToken
54 self.currentToken = None
217 self.currentToken["data"][-1][1] += output
235 token = self.currentToken
377 self.currentToken = {"type": tokenTypes["StartTag"],
408 self.currentToken = {"type": tokenTypes["EndTag"], "name": data,
444 self.currentToken["name"] += "\uFFFD"
446 self.currentToken["name"] += data
474 appropriate = self.currentToken and self.currentToken["name"].lower() == self.temporaryBuffer.lower()
477 self.currentToken = {"type": tokenTypes["EndTag"],
482 self.currentToken = {"type": tokenTypes["EndTag"],
487 self.currentToken = {"type": tokenTypes["EndTag"],
524 appropriate = self.currentToken and self.currentToken["name"].lower() == self.temporaryBuffer.lower()
527 self.currentToken = {"type": tokenTypes["EndTag"],
532 self.currentToken = {"type": tokenTypes["EndTag"],
537 self.currentToken = {"type": tokenTypes["EndTag"],
577 appropriate = self.currentToken and self.currentToken["name"].lower() == self.temporaryBuffer.lower()
580 self.currentToken = {"type": tokenTypes["EndTag"],
585 self.currentToken = {"type": tokenTypes["EndTag"],
590 self.currentToken = {"type": tokenTypes["EndTag"],
713 appropriate = self.currentToken and self.currentToken["name"].lower() == self.temporaryBuffer.lower()
716 self.currentToken = {"type": tokenTypes["EndTag"],
721 self.currentToken = {"type": tokenTypes["EndTag"],
726 self.currentToken = {"type": tokenTypes["EndTag"],
857 self.currentToken["data"].append([data, ""])
866 self.currentToken["data"].append([data, ""])
871 self.currentToken["data"].append(["\uFFFD", ""])
878 self.currentToken["data"].append([data, ""])
889 self.currentToken["data"][-1][0] += data +\
904 self.currentToken["data"][-1][0] += "\uFFFD"
910 self.currentToken["data"][-1][0] += data
917 self.currentToken["data"][-1][0] += data
925 self.currentToken["data"][-1][0] = (
926 self.currentToken["data"][-1][0].translate(asciiUpper2Lower))
927 for name, value in self.currentToken["data"][:-1]:
928 if self.currentToken["data"][-1][0] == name:
946 self.currentToken["data"].append([data, ""])
953 self.currentToken["data"].append(["\uFFFD", ""])
958 self.currentToken["data"].append([data, ""])
965 self.currentToken["data"].append([data, ""])
987 self.currentToken["data"][-1][1] += "\uFFFD"
992 self.currentToken["data"][-1][1] += data
999 self.currentToken["data"][-1][1] += data
1012 self.currentToken["data"][-1][1] += "\uFFFD"
1018 self.currentToken["data"][-1][1] += data +\
1031 self.currentToken["data"][-1][1] += "\uFFFD"
1037 self.currentToken["data"][-1][1] += data +\
1052 self.currentToken["data"][-1][1] += data
1056 self.currentToken["data"][-1][1] += "\uFFFD"
1062 self.currentToken["data"][-1][1] += data + self.stream.charsUntil(
1089 self.currentToken["selfClosing"] = True
1124 self.currentToken = {"type": tokenTypes["Comment"], "data": ""}
1136 self.currentToken = {"type": tokenTypes["Doctype"],
1171 self.currentToken["data"] += "\uFFFD"
1175 self.tokenQueue.append(self.currentToken)
1180 self.tokenQueue.append(self.currentToken)
1183 self.currentToken["data"] += data
1194 self.currentToken["data"] += "-\uFFFD"
1198 self.tokenQueue.append(self.currentToken)
1203 self.tokenQueue.append(self.currentToken)
1206 self.currentToken["data"] += "-" + data
1217 self.currentToken["data"] += "\uFFFD"
1221 self.tokenQueue.append(self.currentToken)
1224 self.currentToken["data"] += data + \
1235 self.currentToken["data"] += "-\uFFFD"
1240 self.tokenQueue.append(self.currentToken)
1243 self.currentToken["data"] += "-" + data
1250 self.tokenQueue.append(self.currentToken)
1255 self.currentToken["data"] += "--\uFFFD"
1264 self.currentToken["data"] += data
1268 self.tokenQueue.append(self.currentToken)
1274 self.currentToken["data"] += "--" + data
1281 self.tokenQueue.append(self.currentToken)
1284 self.currentToken["data"] += "--!"
1289 self.currentToken["data"] += "--!\uFFFD"
1294 self.tokenQueue.append(self.currentToken)
1297 self.currentToken["data"] += "--!" + data
1308 self.currentToken["correct"] = False
1309 self.tokenQueue.append(self.currentToken)
1325 self.currentToken["correct"] = False
1326 self.tokenQueue.append(self.currentToken)
1331 self.currentToken["name"] = "\uFFFD"
1336 self.currentToken["correct"] = False
1337 self.tokenQueue.append(self.currentToken)
1340 self.currentToken["name"] = data
1347 self.currentToken["name"] = self.currentToken["name"].translate(asciiUpper2Lower)
1350 self.currentToken["name"] = self.currentToken["name"].translate(asciiUpper2Lower)
1351 self.tokenQueue.append(self.currentToken)
1356 self.currentToken["name"] += "\uFFFD"
1361 self.currentToken["correct"] = False
1362 self.currentToken["name"] = self.currentToken["name"].translate(asciiUpper2Lower)
1363 self.tokenQueue.append(self.currentToken)
1366 self.currentToken["name"] += data
1374 self.tokenQueue.append(self.currentToken)
1377 self.currentToken["correct"] = False
1381 self.tokenQueue.append(self.currentToken)
1415 self.currentToken["correct"] = False
1432 self.currentToken["correct"] = False
1433 self.tokenQueue.append(self.currentToken)
1445 self.currentToken["publicId"] = ""
1448 self.currentToken["publicId"] = ""
1453 self.currentToken["correct"] = False
1454 self.tokenQueue.append(self.currentToken)
1459 self.currentToken["correct"] = False
1460 self.tokenQueue.append(self.currentToken)
1465 self.currentToken["correct"] = False
1476 self.currentToken["publicId"] += "\uFFFD"
1480 self.currentToken["correct"] = False
1481 self.tokenQueue.append(self.currentToken)
1486 self.currentToken["correct"] = False
1487 self.tokenQueue.append(self.currentToken)
1490 self.currentToken["publicId"] += data
1500 self.currentToken["publicId"] += "\uFFFD"
1504 self.currentToken["correct"] = False
1505 self.tokenQueue.append(self.currentToken)
1510 self.currentToken["correct"] = False
1511 self.tokenQueue.append(self.currentToken)
1514 self.currentToken["publicId"] += data
1522 self.tokenQueue.append(self.currentToken)
1527 self.currentToken["systemId"] = ""
1532 self.currentToken["systemId"] = ""
1537 self.currentToken["correct"] = False
1538 self.tokenQueue.append(self.currentToken)
1543 self.currentToken["correct"] = False
1552 self.tokenQueue.append(self.currentToken)
1555 self.currentToken["systemId"] = ""
1558 self.currentToken["systemId"] = ""
1563 self.currentToken["correct"] = False
1564 self.tokenQueue.append(self.currentToken)
1569 self.currentToken["correct"] = False
1585 self.currentToken["correct"] = False
1586 self.tokenQueue.append(self.currentToken)
1598 self.currentToken["systemId"] = ""
1601 self.currentToken["systemId"] = ""
1606 self.currentToken["correct"] = False
1607 self.tokenQueue.append(self.currentToken)
1612 self.currentToken["correct"] = False
1613 self.tokenQueue.append(self.currentToken)
1618 self.currentToken["correct"] = False
1629 self.currentToken["systemId"] += "\uFFFD"
1633 self.currentToken["correct"] = False
1634 self.tokenQueue.append(self.currentToken)
1639 self.currentToken["correct"] = False
1640 self.tokenQueue.append(self.currentToken)
1643 self.currentToken["systemId"] += data
1653 self.currentToken["systemId"] += "\uFFFD"
1657 self.currentToken["correct"] = False
1658 self.tokenQueue.append(self.currentToken)
1663 self.currentToken["correct"] = False
1664 self.tokenQueue.append(self.currentToken)
1667 self.currentToken["systemId"] += data
1675 self.tokenQueue.append(self.currentToken)
1680 self.currentToken["correct"] = False
1681 self.tokenQueue.append(self.currentToken)
1692 self.tokenQueue.append(self.currentToken)
1697 self.tokenQueue.append(self.currentToken)