Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ampproject/amphtml
/ window-property-name.js
File
window-property-name.js
build-system/eslint-rules/window-property-name.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* @fileoverview
3
* Checks that custom properties set on the window are prefixed with
'__AMP_'
.
4
* The prefix is invalid in `id` attributes which prevents DOM clobbering.
Callers
nothing calls this directly
Calls
1
resolve
Method · 0.80
Tested by
no test coverage detected