Skip to content

Consider allowing input[type=button] and input[type=image] #26364

Closed
@westonruter

Description

I'm coming across some WordPress themes that are using input[type=button] and input[type=image]. Are there specific reasons for why are not allowed in AMP?

image

attrs: {
name: "type"
blacklisted_value_regex: "(^|\\s)(" # Values are space separated.
"button|"
"file|"
"image|"
"password|"
")(\\s|$)"
}

I'm wanting to know if either AMP should allow them or otherwise if the WordPress AMP plugin should try to convert them to <button> and <button><amp-img></amp-img></button> respectively.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions