Craig Francis

@craigfrancis
64 Followers
175 Following
114 Posts
Security, Accessibility, Performance... trying to make the world better.

Petition: “By-elections to be called automatically when MPs defect to another party”

Response: “no plans to change […] voters elect individual candidates, and not the political party they represent”

If true, then remove the party from the ballot paper!

Hello internet, I am actively looking for speaking opportunities in central Europe (e.g., a train-ride from Berlin) to talk about Web security, XSS, `innerHTML` and the Sanitizer API. Ideally to an audience of web developers, framework engineers and the like :)
The GOV.UK “exit this page" button (for pages that might be visited by e.g. domestic abuse victims seeking support) doesn't take you to the Google homepage but instead BBC Weather, and the reason why is interesting and well-thought-out: https://beeps.website/blog/2024-10-09-why-govuk-exit-this-page-doesnt-use-escape/#bonus%3A-why-does-it-redirect-the-user-to-bbc-weather%3F
Why GOV.UK's Exit this Page component doesn't use the Escape key

A very specific question, answered very longwindedly.

beeps
idiot detection system...

@simevidas Tah-dah! One input, with six squares to communicate “enter six digits here”.

https://codepen.io/AmeliaBR/pen/JjxwKoQ?editors=1100

Now, no one has to sacrifice long-established keyboard usability just to match newly-established visual affordances.

6-digit code input, as a single input

[Šime Vidas (@[email protected])](https://mastodon.social/@simevidas/111525190242346194) argues: > Six squares communicate “enter six digits h...

PHP_CodeSniffer users: please read this important announcement: https://github.com/squizlabs/PHP_CodeSniffer/issues/3932

squizlabs/PHP_CodeSniffer is dead, long live PHPCSStandards/PHP_CodeSniffer!

Also, please consider sponsoring the project to safeguard its continuation, as without funding, we'll have the same problem again sooner rather than later.

#phpcs #php

P.S.: @phpcs now also has its own account, follow it to stay informed.

The Future of PHP_CodeSniffer · Issue #3932 · squizlabs/PHP_CodeSniffer

TL;DR: This repo is being abandoned. The project continues in the PHPCSStandards organisation. Okay, it's time. About seven months ago, I was given commit access to this repository. At that time, @...

GitHub

Coding standards lovers: if I'd be writing some sniffs to check phpDoc tags.... which tags should be taken into account and what would you want checked ?

PSR-19 would be first on my list, but I've got plenty more ideas and have created tag lists for PHPUnit, PHPStan, Psalm and a few more.

Are there more popular tools with custom annotations I should look at ?

Anything specific you'd really like to be able to enforce via #PHPCS ?

Nice addition to CSS! 👉 Chromium Intent to Prototype: form-sizing CSS property

»By 'form-sizing' property, web authors can disable fixed default sizes of form controls, and make their size depend on their content. It's very easy to provide automatically-growing text fields.«

https://groups.google.com/a/chromium.org/g/blink-dev/c/cA-cmgrA_QE/m/6uF_LYq4AAAJ

Intent to Prototype: form-sizing CSS property

WordPressCS 3.0.0 is now available

What a great job by the maintainer team @jrf_nl, Gary Jones, @made_by_denis.

Important sidenote: "Unless funding is found to continue maintaining WordPressCS and its dependencies, the future is bleak and maintenance will be halted."

Is your employer using the WordPressCS, or are you running a business and are you using it, donate to/sponsor the project, or its maintainers. #WordPress needs it.

Just released: WordPressCS 3.0.0 ! (at long last)

This is an important release which makes significant changes to improve the accuracy, performance, stability and maintainability of all sniffs, as well as making WordPressCS much better at handling modern PHP.

Please carefully read the changelog and upgrade guides before updating!

Other than that: enjoy!

https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.0.0
https://github.com/WordPress/WordPress-Coding-Standards/wiki/Upgrade-Guide-to-WordPressCS-3.0.0-for-ruleset-maintainers
https://github.com/WordPress/WordPress-Coding-Standards/wiki/Upgrade-Guide-to-WordPressCS-3.0.0-for-Developers-of-external-standards

Release 3.0.0 · WordPress/WordPress-Coding-Standards

Important information about this release: At long last... WordPressCS 3.0.0 is here. This is an important release which makes significant changes to improve the accuracy, performance, stability and...

GitHub