-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Remove legacycaller from two collections #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3640 seems like in Blink |
|
I get undefined and null in IE11. In IE11 it seems |
|
/cc @DigiTec who I know was looking in to this recently for Edge. There are some other issues he was looking in to regarding legacycaller and HTMLAllCollection I think; would be great to get some details there in a separate issue... |
|
Are these two issues actually related?
Blink doesn't have |
|
@foolip well, the specification doesn't have the overrides (except for the non-normative text). |
|
I'll test Edge when I get to work (home computer is still on Windows 8.1). Too bad remote.modern.ie is not updated. |
|
@annevk, right, I've added FIXMEs for that, I'm just not sure what the connection is, was this just drive-by cleanup? |
|
@foolip yes, since I had to remove the legacycaller bits from those sections. |
|
OK then, changes LGTM! |
c0615e3 to
486a3f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, these are a pretty big mess too. The comment says you inherit the "getter" but how does that even work. And item is shadowed by two overloads, but doesn't have a comment, even though namedItem does. So confusing.
I guess not any different than before though, so it doesn't need to be addressed in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems what Gecko does here is just have a distinct class for this collection. We could do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm same in Chrome. Edge inherits from HTMLCollection though. Interesting.
|
FYI Edge gives the same as IE11 ( We should also consider removing the microdata API. |
7e64271 to
6f73471
Compare
|
Another thing that would be good to do for this kind of change is at least open an issue on web-platform-tests, or even better, write and submit some tests. |
As far as I can tell neither Gecko nor WebKit support legacycaller for either HTMLFormControlsCollection or HTMLOptionsCollection. Furthermore, HTMLOptionsCollection’s namedItem() cannot return a collection since it’s identical to HTMLCollection’s namedItem().
6f73471 to
834a858
Compare
As far as I can tell neither Gecko nor WebKit support legacycaller for
either HTMLFormControlsCollection or HTMLOptionsCollection.
Furthermore, HTMLOptionsCollection’s namedItem() cannot return a
collection since it’s identical to HTMLCollection’s namedItem().