Fix list-style-type: none (Fix #1340)

This commit is contained in:
Niklas von Hertzen 2017-12-28 13:52:05 +08:00
parent 22f58d5d1c
commit eec84fa39e

View File

@ -7,6 +7,7 @@ import NodeContainer from './NodeContainer';
import TextContainer from './TextContainer';
import {inlineInputElement, inlineTextAreaElement, inlineSelectElement} from './Input';
import {inlineListItemElement} from './ListItem';
import {LIST_STYLE_TYPE} from './parsing/listStyle';
export const NodeParser = (
node: HTMLElement,
@ -74,7 +75,7 @@ const parseNodeTree = (
inlineSelectElement(childNode, container);
} else if (
container.style.listStyle &&
container.style.listStyle.listStyleType !== 'none'
container.style.listStyle.listStyleType !== LIST_STYLE_TYPE.NONE
) {
inlineListItemElement(childNode, container, resourceLoader);
}