CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...
Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...
RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...
If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":
Browsers come with a set of built-in elements like or . When we need a new component not covered by...
A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...
The french Tilt Studio built a caniuse clone for email clients. Note that while checking styling support helps using (or...
There are a few ways to access view helpers from the Rails console. The easiest way is the helper shortcut...
You can use constraints in your routes.rb to avoid getting ActionView::MissingTemplate errors when wrong routes are called. Instead, the...
Use the compile function to change the original DOM (template element) before AngularJS creates an instance of it and before...
When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...
Inspecting the source of an email does not always reveal the plain HTML source, but some encoded byte mess. In...
The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...
Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...
Over the years we have tried several solution to have vector icons in our applications. There are many ways to...
Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...
In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',
Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...
When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...