✨ Add dirtyElement method to Resources (#14917)
✨ Add dirtyElement method to Resources (#14917)

* Add dirtyElement method to Resources

Fixes #14686.

* Lint

* Nits

rsimha-amp/amphtml,cory-work/amphtml,cvializ/amphtml,tlong2/amphtml,koshka/amphtml,Gregable/amphtml,yandex-pcode/amphtml,nexxtv/amphtml,lannka/amphtml,jridgewell/amphtml,yandex-pcode/amphtml,aghassemi/amphtml,prateekbh/amphtml,prateekbh/amphtml,dotandads/amphtml,honeybadgerdontcare/amphtml,pedjoni8/amphtml,BenDz/amphtml,taboola/amphtml,erwinmombay/amphtml,kamtschatka/amphtml,voyagegroup/amphtml,cvializ/amphtml,adup-tech/amphtml,lannka/amphtml,danielrozenberg/amphtml,sharethrough/amphtml,laterpay/amphtml,yieldbot/amphtml,erwinmombay/amphtml,prateekbh/amphtml,zhouyx/amphtml,nexxtv/amphtml,prateekbh/amphtml,aghassemi/amphtml,zhouyx/amphtml,ampproject/amphtml,danielrozenberg/amphtml,chaveznvg/amphtml,cvializ/amphtml,kamtschatka/amphtml,mhc-gh/amphtml,nexxtv/amphtml,honeybadgerdontcare/amphtml,taboola/amphtml,alanorozco/amphtml,mhc-gh/amphtml,mhc-gh/amphtml,mhc-gh/amphtml,ampproject/amphtml,cory-work/amphtml,honeybadgerdontcare/amphtml,luciancrasovan/amphtml,Gregable/amphtml,lannka/amphtml,sebastianbenz/amphtml,danielrozenberg/amphtml,zhouyx/amphtml,laterpay/amphtml,jridgewell/amphtml,tlong2/amphtml,pedjoni8/amphtml,Gregable/amphtml,bpaduch/amphtml,laterpay/amphtml,techhtml/amphtml,bpaduch/amphtml,media-net/amphtml,zhangsu/amphtml,chaveznvg/amphtml,cvializ/amphtml,sharethrough/amphtml,adup-tech/amphtml,src-code/amphtml,sebastianbenz/amphtml,widespace-os/amphtml,voyagegroup/amphtml,rsimha-amp/amphtml,zhouyx/amphtml,chaveznvg/amphtml,erwinmombay/amphtml,chaveznvg/amphtml,sebastianbenz/amphtml,taboola/amphtml,adup-tech/amphtml,cory-work/amphtml,smartadserver/amphtml,cory-work/amphtml,bpaduch/amphtml,honeybadgerdontcare/amphtml,Gregable/amphtml,mhc-gh/amphtml,bpaduch/amphtml,jridgewell/amphtml,techhtml/amphtml,rsimha-amp/amphtml,pedjoni8/amphtml,zhouyx/amphtml,luciancrasovan/amphtml,jmadler/amphtml,luciancrasovan/amphtml,kamtschatka/amphtml,smartadserver/amphtml,media-net/amphtml,cory-work/amphtml,pedjoni8/amphtml,yieldbot/amphtml,widespace-os/amphtml,BenDz/amphtml,jridgewell/amphtml,luciancrasovan/amphtml,widespace-os/amphtml,jmadler/amphtml,sebastianbenz/amphtml,chaveznvg/amphtml,danielrozenberg/amphtml,src-code/amphtml,koshka/amphtml,voyagegroup/amphtml,mhc-gh/amphtml,mhc-gh/amphtml,dotandads/amphtml,aghassemi/amphtml,media-net/amphtml,techhtml/amphtml,lannka/amphtml,ampproject/amphtml,zhangsu/amphtml,erwinmombay/amphtml,voyagegroup/amphtml,laterpay/amphtml,yandex-pcode/amphtml,danielrozenberg/amphtml,nexxtv/amphtml,yandex-pcode/amphtml,smartadserver/amphtml,src-code/amphtml,BenDz/amphtml,yandex-pcode/amphtml,bpaduch/amphtml,ampproject/amphtml,bpaduch/amphtml,koshka/amphtml,taboola/amphtml,techhtml/amphtml,voyagegroup/amphtml,jridgewell/amphtml,widespace-os/amphtml,Gregable/amphtml,media-net/amphtml,cory-work/amphtml,sharethrough/amphtml,tlong2/amphtml,jmadler/amphtml,techhtml/amphtml,rsimha-amp/amphtml,nexxtv/amphtml,smartadserver/amphtml,alanorozco/amphtml,alanorozco/amphtml,media-net/amphtml,media-net/amphtml,techhtml/amphtml,tlong2/amphtml,pedjoni8/amphtml,jridgewell/amphtml,lannka/amphtml,media-net/amphtml,smartadserver/amphtml,jmadler/amphtml,koshka/amphtml,yieldbot/amphtml,rsimha-amp/amphtml,cvializ/amphtml,zhangsu/amphtml,smartadserver/amphtml,jpettitt/amphtml,voyagegroup/amphtml,nexxtv/amphtml,cory-work/amphtml,dotandads/amphtml,zhouyx/amphtml,sharethrough/amphtml,aghassemi/amphtml,alanorozco/amphtml,ampproject/amphtml,src-code/amphtml,yieldbot/amphtml,sebastianbenz/amphtml,adup-tech/amphtml,BenDz/amphtml,rsimha-amp/amphtml,Gregable/amphtml,yandex-pcode/amphtml,tlong2/amphtml,dotandads/amphtml,lannka/amphtml,jpettitt/amphtml,mhc-gh/amphtml,yandex-pcode/amphtml,danielrozenberg/amphtml,dotandads/amphtml,cvializ/amphtml,ampproject/amphtml,prateekbh/amphtml,jmadler/amphtml,src-code/amphtml,aghassemi/amphtml,erwinmombay/amphtml,alanorozco/amphtml,kamtschatka/amphtml,adup-tech/amphtml,danielrozenberg/amphtml,Gregable/amphtml,voyagegroup/amphtml,laterpay/amphtml,koshka/amphtml,luciancrasovan/amphtml,zhouyx/amphtml,jpettitt/amphtml,taboola/amphtml,chaveznvg/amphtml,BenDz/amphtml,yieldbot/amphtml,alanorozco/amphtml,adup-tech/amphtml,jpettitt/amphtml,media-net/amphtml,alanorozco/amphtml,danielrozenberg/amphtml,sebastianbenz/amphtml,taboola/amphtml,jpettitt/amphtml,BenDz/amphtml,koshka/amphtml,jpettitt/amphtml,jpettitt/amphtml,kamtschatka/amphtml,jpettitt/amphtml,prateekbh/amphtml,jridgewell/amphtml,sharethrough/amphtml,aghassemi/amphtml,honeybadgerdontcare/amphtml,luciancrasovan/amphtml,luciancrasovan/amphtml,ampproject/amphtml,prateekbh/amphtml,lannka/amphtml,Gregable/amphtml,pedjoni8/amphtml,honeybadgerdontcare/amphtml,laterpay/amphtml,widespace-os/amphtml,alanorozco/amphtml,taboola/amphtml,zhangsu/amphtml,tlong2/amphtml,src-code/amphtml,honeybadgerdontcare/amphtml,yieldbot/amphtml,erwinmombay/amphtml,dotandads/amphtml,sharethrough/amphtml,zhangsu/amphtml,widespace-os/amphtml,ampproject/amphtml,nexxtv/amphtml,kamtschatka/amphtml,jmadler/amphtml,rsimha-amp/amphtml,zhangsu/amphtml,bpaduch/amphtml