Web Platform Atlas
EN⚡RUUA⚡DE⚡FR⚡ES⚡PL⚡PT⚡ZH⚡JA⚡
Каталог / HTML / The "in column group" insertion mode

13.2.6.4.12 The "in column group" insertion mode

Статический предпросмотр (RU): для MDN, WPT, глоссария и BYOK-перевода откройте интерактивный Атлас.
⚡ Открыть главу в Атласе

13.2.6.4.12 The "in column group" insertion mode

When the user agent is to apply the rules for the "in column group" insertion mode, the user agent must handle the token as follows:

Символьный токен, являющийся одним из U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), U+000C FORM FEED (FF), U+000D CARRIAGE RETURN (CR) или U+0020 SPACE

Insert the character.

Токен комментария

Вставить комментарий.

Токен инструкции по обработке

Вставить инструкцию по обработке.

Токен DOCTYPE

Ошибка разбора. Игнорировать токен.

Начальный тег с именем тега "html"

Process the token using the rules for the "in body" insertion mode.

A start tag whose tag name is "col"

Вставить элемент HTML для токена. Немедленно извлечь текущий узел из стека открытых элементов.

Подтверждено self-closing flag токена, если он установлен.

An end tag whose tag name is "colgroup"

If the current node is not a colgroup element, then this is a parse error; ignore the token.

Otherwise, pop the current node from the stack of open elements. Switch the insertion mode to "in table".

An end tag whose tag name is "col"

Ошибка разбора. Игнорировать токен.

A start tag whose tag name is "template"

Конечный тег с именем тега "template"

Обработать токен, используя правила для режима вставки "внутри head".

Токен конца файла

Process the token using the rules for the "in body" insertion mode.

Anything else

If the current node is not a colgroup element, then this is a parse error; ignore the token.

Otherwise, pop the current node from the stack of open elements.

Переключить режим вставки на "внутри table".

Повторно обработать токен.