...a form an autocomplete attribute with the value off: ... Rails example form_for @model, :html => { :autocomplete => "off" } do |form...
All you need to do is right click on an element in the HTML panel, pick Log Events from the context menu and switch to the Console panel to...
WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD to any textarea with one line of code. Add live...
...connect to or communicate with a server other than server1.example.com. An exception is the HTML...
CSS is a lot easier to write and read than clumsy XPath expressions. So when you need to use XPath...
}); // Do this: app.controller('TodoCtrl', function () { this.input = 'ex. buy milk'; });
These are the top ten accessibility errors as researched by TPGi, a company focusing on accessibility. See the linked article...
...size of all cookies <= 4093 bytes) Behind the link, you'll find a simple HTML page that offers some cookie tests (how large, how many etc) and an overview of...
...RegExp objects by interpolating it into new patterns: locales_pattern = /de|en|fr|es/i html_tag_pattern = / / Any modifiers like /i or /x will be preserved within the interpolated region...
...example above only the interpolated locales are case-insensitive, while the pattern around it (/<html .../) remains case-sensitive...
Good reference how to build bootstrap forms with simple_form.
Even when you app has no CSS at all, you still inherit a default user agent stylesheet from your browser...
Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...
By default subscript ( ) and superscript ( ) tags are styled with vertical-align: sub, respectively vertical-align: super by most browsers.
While IE9 does support HTML5 tags, it fails to work until you force HTML5 mode. Here are two ways to do that. Option 1: Doctype Make sure your HTML document...
...uses HTML5. It should start like this: Option 2: Magic meta tag If you can not set a doctype, you use the X-UA-Compatible meta tag in your HTML...
These steps are now part of Spreewald. This note describes a Cucumber step that lets you write this:
...sets flex-basis: 0 which IE fails to support properly. Example Consider the following HTML and CSS. foo bar .container { display: flex; flex-direction: column; } .child { flex: 1; }
Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:
...a nasty bug which sometimes prevents it from rendering the shadow properly. Consider this HTML: Hello universe While it works in other browsers, IE9 is not showing any shadow. For...
...Although this does the trick, you need to set a zero cellspacing in the HTML (or border-spacing in CSS, if possible) to avoid space between table cells.\
shoelace is a library of web components. Here is a proof of concept how a integration (slightly different as the...
SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...
...client, it's best practice to put script tags at the bottom of the HTML. This way, the page can start to render before scripts have been loaded and run...
When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...
...encounter problems with timing - For example if your test runs faster than your application, html elements may not yet be visible when the test looks for them. That's why...
No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a back and forth between designers and devs? Why is it...