RESOLVED FIXED 40218
Disable interactive form validation in non-standard modes
https://bugs.webkit.org/show_bug.cgi?id=40218
Summary Disable interactive form validation in non-standard modes
Kent Tamura
Reported 2010-06-06 20:00:35 PDT
Disable interactive form validation in the compat mode
Attachments
Patch (4.45 KB, patch)
2010-06-06 20:11 PDT, Kent Tamura
no flags
Patch 2 (6.79 KB, patch)
2010-06-11 06:54 PDT, Kent Tamura
no flags
Kent Tamura
Comment 1 2010-06-06 20:11:15 PDT
Kent Tamura
Comment 2 2010-06-11 06:54:38 PDT
Created attachment 58468 [details] Patch 2
Dimitri Glazkov (Google)
Comment 3 2010-06-11 10:36:21 PDT
Comment on attachment 58468 [details] Patch 2 ok, but let's clarify ChangeLog a bit more. WebCore/ChangeLog:9 + HTML4, and users and page authors don't expect existing sites work There is no interactive validation in HTML4. "required" is just something developers started throwing on pages without thinking. Right? WebCore/ChangeLog:12 + modes to keep compatibility as possible. Wording suggestion -- "to improve compatibility."
Kent Tamura
Comment 4 2010-06-12 03:59:05 PDT
(In reply to comment #3) > (From update of attachment 58468 [details]) > ok, but let's clarify ChangeLog a bit more. > > WebCore/ChangeLog:9 > + HTML4, and users and page authors don't expect existing sites work > There is no interactive validation in HTML4. "required" is just something developers started throwing on pages without thinking. Right? Right. It seems some existing form validation JS libraries have used "required" attribute not for HTML5. > > WebCore/ChangeLog:12 > + modes to keep compatibility as possible. > Wording suggestion -- "to improve compatibility." OK, I'll change so.
Kent Tamura
Comment 5 2010-06-12 04:19:50 PDT
Alexey Proskuryakov
Comment 6 2010-06-13 21:59:39 PDT
Darin Adler
Comment 7 2010-06-13 22:01:03 PDT
I’m not sure that compatibility mode vs. strict mode is the way to handle this. Maybe someone made the mistake on a website in strict mode too.
Darin Adler
Comment 8 2010-06-13 22:02:21 PDT
We don’t usually make whole new features work only in strict mode. I don’t have any other suggestion at the moment, but I think doing this may reflect some misunderstanding of how effective “quirks vs. strict” really is. Mainly it’s good for slightly rendering tweaks and seems less good for turning off entire features like this one.
Kent Tamura
Comment 9 2010-06-13 22:27:49 PDT
(In reply to comment #7) > I’m not sure that compatibility mode vs. strict mode is the way to handle this. Maybe someone made the mistake on a website in strict mode too. We can say "your website doesn't conform to HTML5" in that case. But we can't say it for existing HTML4 sites. Please look at Bug#40520 too.
Maciej Stachowiak
Comment 10 2010-06-14 15:20:11 PDT
(In reply to comment #9) > (In reply to comment #7) > > I’m not sure that compatibility mode vs. strict mode is the way to handle this. Maybe someone made the mistake on a website in strict mode too. > > We can say "your website doesn't conform to HTML5" in that case. But we can't say it for existing HTML4 sites. > > Please look at Bug#40520 too. Existing HTML4 sites can also be in strict mode. In fact, a fair number of HTML4 sites have a standards mode or almost standards mode doctype. I don't think we should make new features be based on a modeswitch. The philosophy of HTML5 is to make new features backwards-compatible so they can be progressively deployed on existing sites. If HTML5 @required causes too much compatibility fallout, then we should: (a) Remove HTML5 @required support entirely for now. (b) Report our findings to the HTML WG and proposed renaming the attribute. I don't think making the feature strict-mode only is an appropriate fix.
Aryeh Gregor
Comment 11 2010-06-16 19:00:12 PDT
This violates the HTML5 spec. HTML5 clearly specifies exactly how UAs are to behave in quirks mode -- conformant UAs are expected to behave interoperably in quirks mode just as in standards mode. If WebKit is going to behave differently in quirks mode here, you should tell this to the WHATWG (or HTMLWG) so that it can be added to the spec if other implementers agree it's a good approach. (I don't think it sounds like a good approach; there are only a few sites with the problem and they'll probably fix themselves when they break in both WebKit and Gecko.)
Aryeh Gregor
Comment 12 2010-06-16 19:00:58 PDT
Oops, I missed the discussion on bug 40520. Never mind me.
Note You need to log in before you can comment on or make changes to this bug.