Skip to content

Commit

Permalink
feat(ignore): modify attr name
Browse files Browse the repository at this point in the history
Make ignore attribute name more generic
  • Loading branch information
adam-26 committed Dec 7, 2017
1 parent 4b3f1e3 commit 7813f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ _its react-helmet, with the data-react-helmet attribute removed_
* No longer uses `data-react-helmet` attributes
* _Assumes_ all HTML metadata is assigned using this package
* To prevent react-cap from removing metadata assigned **not using react-cap**:
* apply attribute `data-cap-ignore` to an html element to prevent it being removed
* apply attribute `data-cap-ignore="attrName,attrName"` to an html element to prevent modification of specific attributes
* apply attribute `data-ignore-metadata` to an html element to prevent it being removed
* apply attribute `data-ignore-metadata="attrName,attrName"` to an html element to prevent modification of specific attributes

This package was originally created to support using HTML `<head>` metadata with the react v16 streaming interface.
See [react-html-metadata](https://github.com/adam-26/react-html-metadata) for an implementation that supports react server side streaming.
Expand Down
2 changes: 1 addition & 1 deletion src/HelmetConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ export const SELF_CLOSING_TAGS = [
TAG_NAMES.STYLE
];

export const HELMET_IGNORE_ATTRIBUTE = "data-cap-ignore";
export const HELMET_IGNORE_ATTRIBUTE = "data-ignore-metadata";

0 comments on commit 7813f71

Please sign in to comment.