Skip to content

amp-bind: XHTML-friendly syntax #11115

@dreamofabear

Description

@dreamofabear

Square brackets, e.g [foo], are not valid attribute name starting chars in XML spec: https://www.w3.org/TR/REC-xml/#NT-NameStartChar

Perhaps we can allow a configuration to switch to an alternative syntax, e.g.

<!-- Generic solution. -->
<script async custom-element="amp-bind" src="..." data-syntax="xml"></script>

<!-- Or an amp-bind specific solution. -->
<amp-bind syntax="xml"></amp-bind>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions