Alain Schlesser

Results 176 issues of Alain Schlesser

The AMP Toolbox should include a sanitizer that is a pure PHP variant of the collection of sanitizers currently found in the AMP for WordPress plugin. The general idea is...

Epic
Sanitizer

## Feature description The Common package (`ampproject/common`) is currently sitting at and enforcing level 4 of PHPStan static analysis. There are 2 errors that need to be fixed so that...

Tech Debt
WS:Perf

The AMP project has deprecated the concept of `latestVersion` and `-latest` binaries: https://github.com/ampproject/amphtml/issues/36749 Right now, we use that data for the `AutoExtensions` transformer to figure out which version of a...

The parsing of the CLI options is dependent on an arbitrary ordering where associative arguments (flags like `--json`) need to come first before positional arguments. If these associative arguments are...

Bug
CLI

Multiple TODOs are still open in the `ExtensionSpec` template. These need to be resolved be generally improving the handling of latest versions of extensions. - [ ] The spec will...

Validator

Profiling the current test suite showed that the use of `mb_detect_encoding()` made up more than 40% of the execution time of the entire test suite. We should: - [ ]...

Good First Issue
Performance
DOM

The following is a list of tasks/issues we need to complete for a feature-complete v1.0.0 release of the optimizer. - [x] New Transformer: BrowserHints [[#31](https://github.com/ampproject/amp-toolbox-php/issues/31)] - [x] New Transformer: AutoExtensions...

Release

As an alternative to https://github.com/ampproject/amp-wp/issues/2382 , we should generate an `AmpCache` class from the https://cdn.ampproject.org/caches.json that turn the JSON file into readily usable class constants in PHP code. This can...

Some extension scripts are only needed to power the interactivity for the user and are not necessary during the initial rendering process. Moving these scripts to the end of the...

P2
Optimizer

The AMP Toolbox should have a full PHP implementation of the AMP validator - [ ] Generate PHP representation of validator spec => #100 - [ ] Implement validators that...

Epic
Validator