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
"reset the form owner" is not quite right #2863
Comments
The code in Chromium is here: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/ListedElement.cpp?type=cs&sq=package:chromium&l=77
|
Ah, so insertion checks a bit for "inserted by the parser". The specification has it as a special case that doesn't persist as a bit. And then I guess there's some other things. |
I looked into fixing bug 28800 (now moved to this issue), but I can't quite figure out what model browsers are actually using. For Live DOM Viewer:
If someElementName is
"div"
or"table"
the owner remains the same. If it is"form"
,"tr"
, or"input"
it becomes null.This is what HTML says about the matter (if we ignore the parser bits that cause the unusual association seen above and ignore the
form
attribute):It seems however that when it is reset works very differently from that (and consistently so across at least Chrome, Firefox, and Safari).
Also, it doesn't seem like "connected" is correct, since as demonstrated by http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3537 that's not a requirement.
It would be great if someone could help me understand what browsers actually do here (and where that is located in the code).
cc @tkent-google @smaug----
The text was updated successfully, but these errors were encountered: