Amphtml: mandatory_atleastoneof attribute spec

Created on 14 Mar 2018  路  3Comments  路  Source: ampproject/amphtml

Nice-to-have: validate that an element has one or more attributes in a given list. Similar to mandatory_oneof: "['foo', 'bar']" but would allow both attributes foo and bar to exist.

Name suggestions: mandatory_atleastoneof, mandatory_oneoformore

Current workaround is to duplicate the tag spec. Context: https://github.com/ampproject/amphtml/issues/12372#issuecomment-372814132

When Possible Feature Request caching

Most helpful comment

How about: mandatory_anyof

All 3 comments

How about: mandatory_anyof

Thanks for implementing this!

Was this page helpful?
0 / 5 - 0 ratings