Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Closes the noscript tag for HTML validity.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Feb 26, 2019
1 parent 99cc536 commit b10d6c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/index.story.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ storiesOf('React StreamField demo', module)
}
],
html:
'As you can see by this text, it’s possible <strong>to insert some HTML</strong> before or after the contained blocks. <noscript data-blocks-container /> You can even have multiple times the same blocks container. <noscript data-blocks-container /> Can’t think of a case where that would be useful, but still, it’s possible if you really want it.'
'As you can see by this text, it’s possible <strong>to insert some HTML</strong> before or after the contained blocks. <noscript data-blocks-container></noscript> You can even have multiple times the same blocks container. <noscript data-blocks-container></noscript> Can’t think of a case where that would be useful, but still, it’s possible if you really want it.'
}
],
value: []
Expand Down Expand Up @@ -408,7 +408,7 @@ storiesOf('React StreamField demo', module)
],
label: 'Struct',
html:
'Like for lists, we can add HTML before struct fields <noscript data-blocks-container /> and after as well.'
'Like for lists, we can add HTML before struct fields <noscript data-blocks-container></noscript> and after as well.'
}
],
value: []
Expand Down
3 changes: 2 additions & 1 deletion src/BlockContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class BlockContent extends React.Component {
return blocksContainer;
}
return replaceWithComponent(
html, '<noscript data-blocks-container />', blocksContainer);
html, '<noscript data-blocks-container></noscript>',
blocksContainer);
}
return <FieldInput fieldId={fieldId} blockId={blockId} />;
}
Expand Down
2 changes: 1 addition & 1 deletion src/FieldInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FieldInput extends React.Component {
return blocksContainer;
}
return replaceWithComponent(
html, '<noscript data-blocks-container />', blocksContainer);
html, '<noscript data-blocks-container></noscript>', blocksContainer);
}
}

Expand Down

0 comments on commit b10d6c5

Please sign in to comment.