WICG / inert

Polyfill for the inert attribute and property.
Other
924 stars 81 forks source link

Interactive elements injected into an inert subtree will not be properly restored. #72

Open robdodson opened 7 years ago

robdodson commented 7 years ago

@bkardell mentioned a bug that I haven't had a chance to verify.

If you have an ol, where each li contains an anchor and a button. Inert the ol, and inject a new li also containing an anchor and a button. When you un-inert the ol the new li's interactive elements will still have tabindex=-1.

bkardell commented 7 years ago

Thanks Rob.. Im unfortunately unable to get to a functional desktop atm but think that if you look at the test

it('should apply to dynamically added content', ...

this would be an ideal place to make sure that removing inert doesn't leave a -1 on those dynamically added elements that default to 0