Add tagName check (whitelist)
Fix: use localStorage when action is relative path