From 09bc39a435a7f66366e870cb907f8273fb2040b8 Mon Sep 17 00:00:00 2001 From: Sylvain Jermini Date: Sun, 16 Jun 2024 16:09:44 +0200 Subject: [PATCH] name -> id conversion --- ...eeConstructorInFramesetSelectTemplate.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/ch/digitalfondue/jfiveparse/TreeConstructorInFramesetSelectTemplate.java b/src/main/java/ch/digitalfondue/jfiveparse/TreeConstructorInFramesetSelectTemplate.java index 742d6ae..3bb6db3 100644 --- a/src/main/java/ch/digitalfondue/jfiveparse/TreeConstructorInFramesetSelectTemplate.java +++ b/src/main/java/ch/digitalfondue/jfiveparse/TreeConstructorInFramesetSelectTemplate.java @@ -202,25 +202,25 @@ static void inTemplate(byte tokenType, String tagName, byte tagNameID, TreeConst TreeConstructorInBodyForeignContentText.inBody(tokenType, tagName, tagNameID, treeConstructor); } else if ( (tokenType == START_TAG && ( - "base".equals(tagName) || // - "basefont".equals(tagName) || // - "bgsound".equals(tagName) || // - "link".equals(tagName) || // - "meta".equals(tagName) || // - "noframes".equals(tagName) || // - "script".equals(tagName) || // - "style".equals(tagName) || // - "template".equals(tagName) || // - "title".equals(tagName) + ELEMENT_BASE_ID == tagNameID || // + ELEMENT_BASEFONT_ID == tagNameID || // + ELEMENT_BGSOUND_ID == tagNameID || // + ELEMENT_LINK_ID == tagNameID || // + ELEMENT_META_ID == tagNameID || // + ELEMENT_NOFRAMES_ID == tagNameID || // + ELEMENT_SCRIPT_ID == tagNameID || // + ELEMENT_STYLE_ID == tagNameID || // + ELEMENT_TEMPLATE_ID == tagNameID || // + ELEMENT_TITLE_ID == tagNameID )) || isEndTagNamed(tokenType, ELEMENT_TEMPLATE_ID, tagNameID)) { TreeConstructorAftersBeforeInitialInHead.inHead(tokenType, tagName, tagNameID, treeConstructor); } else if (tokenType == START_TAG && ( - "caption".equals(tagName) || // - "colgroup".equals(tagName) || // - "tbody".equals(tagName) || // - "tfoot".equals(tagName) || // - "thead".equals(tagName))) { + ELEMENT_CAPTION_ID == tagNameID || // + ELEMENT_COLGROUP_ID == tagNameID || // + ELEMENT_TBODY_ID == tagNameID || // + ELEMENT_TFOOT_ID == tagNameID || // + ELEMENT_THEAD_ID == tagNameID)) { popPushSetAndDispatch(treeConstructor, TreeConstructionInsertionMode.IN_TABLE); } else if (isStartTagNamed(tokenType, ELEMENT_COL_ID, tagNameID)) { popPushSetAndDispatch(treeConstructor, TreeConstructionInsertionMode.IN_COLUMN_GROUP);