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

data-prefetch=false #3263

Closed
pehrlich opened this issue Dec 14, 2011 · 2 comments
Closed

data-prefetch=false #3263

pehrlich opened this issue Dec 14, 2011 · 2 comments

Comments

@pehrlich
Copy link

It would be nice if this disabled prefetch, and the standard carried over for other similar attributes

Why? Its a small issue, but in my particular case is rails helpers create code with opinionated defaults. In order to allow those defaults to be overridden, a monkey patch like this is ultimately required:

options.delete(:'data-prefetch') if options[:'data-prefetch'] == false

Will link to the wiki upon request

@toddparker
Copy link
Contributor

Mind adding a link to this to the feature request wiki page?

@itechnology
Copy link

Totally agree that any boolean attribute should actually test if the value is actually true/false, and not just check to see if the attribute exists.

This is one thing i hate about certain html attributes like: disabled, selected, checked ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants