[webkit-reviews] review requested: [Bug 15062] Implement document.compatMode : [Attachment 16147] implementation in the Document interface

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 28 14:05:46 PDT 2007


Vincent Ricard <magic at magicninja.org> has asked  for review:
Bug 15062: Implement document.compatMode
http://bugs.webkit.org/show_bug.cgi?id=15062

Attachment 16147: implementation in the Document interface
http://bugs.webkit.org/attachment.cgi?id=16147&action=edit

------- Additional Comments from Vincent Ricard <magic at magicninja.org>
here is a patch to implement document.compatMode. I used the followings links
to match the FF behavior; but i'm not sure if compatMode should be declared in
the Document interface or in HTMLDocument:
-
http://www.whatwg.org/specs/web-apps/current-work/multipage/section-documents.h
tml
- http://developer.mozilla.org/en/docs/DOM:document.compatMode

So if we are in Strict mode (or AlmostStrict), we return 'CSS1Compat', otherwie
we return 'BackCompat'.



More information about the webkit-reviews mailing list