Skip to content

Commit

Permalink
Merge pull request #430 from ampproject/fix/re-add-defer-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Dec 2, 2021
2 parents c39d0ed + a11d462 commit e3fcdd9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1,148 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace AmpProject\Tooling\Validator\SpecGenerator\Template;

use AmpProject\Attribute;
use AmpProject\Html\Attribute;
use AmpProject\Validator\Spec\SpecRule;
use AmpProject\Validator\Spec\Tag;

Expand Down
1,144 changes: 0 additions & 1,144 deletions src/Attribute.php

This file was deleted.

1 change: 1 addition & 0 deletions src/Html/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ interface Attribute
const DECODING = 'decoding';
const DEEP_PARSING = 'deep-parsing';
const DEFAULT_ = 'default'; // Underscore needed because 'default' is a PHP keyword.
const DEFER = 'defer';
const DELAY = 'delay';
const DIFFABLE = 'diffable';
const DIFFUSECONSTANT = 'diffuseconstant';
Expand Down
2 changes: 1 addition & 1 deletion src/Optimizer/Transformer/AutoExtensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace AmpProject\Optimizer\Transformer;

use AmpProject\Amp;
use AmpProject\Attribute;
use AmpProject\Html\Attribute;
use AmpProject\Dom\Document;
use AmpProject\Dom\Element;
use AmpProject\Dom\NodeWalker;
Expand Down
2 changes: 1 addition & 1 deletion src/Optimizer/Transformer/OptimizeViewport.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace AmpProject\Optimizer\Transformer;

use AmpProject\Attribute;
use AmpProject\Html\Attribute;
use AmpProject\Dom\Document;
use AmpProject\Dom\Element;
use AmpProject\Optimizer\Configuration\OptimizeViewportConfiguration;
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Spec/TagWithExtensionSpec.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3fcdd9

Please sign in to comment.