-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
) Removes usages of `htmlFor` and `simple-template` in `extensions/amp-story/**`. It also ports `createElementWithAttributes` to JSX and removes `addAttributesToElement` for the sake of keeping the bundle size as small as possible. Caveats: - We prioritize safety. Template structure is left intact and is therefore sub-optimal given JSX. Bundle size may increase by a small amount. Renderers can be later refactored to take advantage of JSX features, and improve readability and output size. - Does not update tests that use `htmlFor`, since they require a context node that's not provided using JSX.
- Loading branch information
1 parent
7bd4192
commit b8123ef
Showing
24 changed files
with
566 additions
and
968 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.