Skip to content

Commit

Permalink
Add tests for parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Jul 13, 2015
1 parent b1b8bec commit 4a6edfb
Show file tree
Hide file tree
Showing 3 changed files with 592 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/parsers/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { trim } from 'content-kit-utils';
const ELEMENT_NODE = 1;
const TEXT_NODE = 3;

const MARKUP_SECTION_TAG_NAMES = ['P', 'H3', 'H2', 'H1', 'BLOCKQUOTE', 'UL', 'IMG', 'OL'];
const MARKUP_SECTION_TAG_NAMES = ['P', 'H3', 'H2', 'H1', 'BLOCKQUOTE', 'UL', 'OL'];

const ALLOWED_ATTRIBUTES = ['href', 'rel', 'src'];

Expand Down Expand Up @@ -36,7 +36,8 @@ const VALID_MARKER_ELEMENTS = [
'I',
'STRONG',
'EM',
'A'
'A',
'LI'
];

function isValidMarkerElement(element) {
Expand Down
Loading

0 comments on commit 4a6edfb

Please sign in to comment.