Summary
IE11 has removed document.all[1]. I'd suggest we support them by doing the same.
Motivation
document.all is nonstandard, and better implemented by a variety of other DOM methods (querySelector, etc.)
Usage information from UseCounter
If I'm reading the data correctly (DocumentAllLegacyUsage?), the usage is very minimal. Less than 0.0001%.
Compatibility Risk
document.all is supported by pretty much all browsers, as it was The Right Way to do things way back when. It's no longer the right way to do things, and IE dropping it means that it's really and truly dead going forward.
Row on feature dashboard?
No.
Requesting approval to remove too?
Yes. Though I'd certainly be open to deprecating for now, and removing later if the change is deemed risky.
This intent was just targeting HTMLAllCollection, but I'd love to drop others in the future. If we're not measuring them yet, we ought to start.
-mike
The numbers surprised me too, which is why I was a bit iffy about the count in the Intent. :)
I'd love it if someone who knows more about UseCounter than I could help me validate that the data is accurate/reasonable.
-mike
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Did you actually test Internet Explorer 11?Perhaps they use the same trick the rest of the browsers use (falsify document.all checks but support it when used unconditionally)?I did not get my hands on the new version yet, which is why I am asking.
Also, bear in mind that Internet Explorer can do this because it has previous document modes for websites that do not cope well with the latest document mode.
Yes, I saw that, too. And it looks weird.It seems like a requirement for those who decide to implement document.all (meaning, they have to implement it according to the details you specified) and not a requirement to implement it. Am I right?
all
attribute must return an HTMLAllCollection
rooted at the Document
node, whose filter matches all elements." +1 to this. Also LGTM on document.all removal.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.