Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML attributes with no value do not get applied #3

Closed
peternewnham opened this issue Jan 29, 2016 · 0 comments
Closed

HTML attributes with no value do not get applied #3

peternewnham opened this issue Jan 29, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@peternewnham
Copy link
Owner

HTML attributes which do not require a value such as disabled do not get applied to the generated React elements.

E.g. <input disabled> does not result in an input that is disabled but <input disabled="true"> does.

@peternewnham peternewnham self-assigned this Jan 29, 2016
@peternewnham peternewnham added this to the v1.0.2 milestone Jan 29, 2016
peternewnham added a commit that referenced this issue Jan 29, 2016
Fixes #3 - Add boolean type attribute handling
mrdrogdrog pushed a commit to mrdrogdrog/react-html-parser that referenced this issue Jun 15, 2021
Add .npmignore file

Add travis config file

Add eslint to package.json

Remove jasmine-expect-jsx from karma file

Add karma-phantomjs-launcher to dev dependencies

Update README

1.0.1

Add github repository to package.json

Ignore .idea file

Add coveralls support

Add coveralls badge

Add demo

Update README

Fix lint errors in demo

Add void element checking to TagElementType

Add tests for void elements

Fixes peternewnham#3 - Add boolean type attribute handling

1.0.2

fix matching boolean attribute

Add react ^15.0.0 to peerDependencies

Update dev-dependencies to latest

Update demo dependencies

Add github project link to demo

Add analytics to demo page

1.0.3

remove duplicate export

add decode entities in text nodes

Update dependencies (peternewnham#18)

* Add package-lock.json file
* Add support for running ci with multiple versions of react
* Add React 16 to peer dependencies

Add options argument to ReactHtmlParser function (peternewnham#21)

Don't automatically convert html, head and body tags to div (peternewnham#22)

Update attributes list with latest additions and removals from react attribute whitelist (peternewnham#23)

Add transform function option (peternewnham#24)

Add transform option

Fix formatting in README.md

Correctly generate inline styles when they contain multiple colons (fixes peternewnham#9) (peternewnham#25)

Update CHANGELOG.md

Correctly generate inline styles when they contain multiple colons (fixes peternewnham#9)

2.0.0

Add preprocessNodes option

Expose htmlparser2

Add React 16 explicitely to travis config

Update demo site to react 16

Update change log for v2.0.1 release

2.0.1

Add downloads badge to readme

Fix empty string styles by running inlineStyleToObject on all strings and deleting non-string style props

Add integration and unit test for empty string style prop value in geratePropsFromAttributes

Add karma-es6-shim for ES6 support (React16 uses Set) for phantomJS

Update changelog

2.0.2

Update README with security information

Fork repository

Format with prettier

package

Add lint ci job

change default export

fix type

fix import

add integration test

lint tests as well

Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant