Add attribute restriction
Also update the docs to include a caveat about the range input