Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Quirks Mode or Standard Mode in RAP?(RAP appears to use Quirks mode)
Quirks Mode or Standard Mode in RAP? [message #1692483] Thu, 16 April 2015 08:09 Go to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
One of our customers noticed that RAP browser applications specify the following DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">.

According to WIKI's definition (http://en.wikipedia.org/wiki/Quirks_mode) this will trigger Quirks mode in all modern browsers rather than Standard (CSS compliant) mode.

It probably isn't important, but I was interested in an explanation, what it means, and why RAP chooses to go with what appears to trigger Quirks mode?

Does this have a potential effect on the box model and images in terms of layout, or does RAP need this in order to get its size and layout calculations correct?

By the way, I'm using RAP 2.3... perhaps it is all changing in RAP 3.0?

Thanks, John


---
Just because you can doesn't mean you should
Re: Quirks Mode or Standard Mode in RAP? [message #1693082 is a reply to message #1692483] Tue, 21 April 2015 14:53 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
It mainly has historical reasons. We could change it to standard mode, but there is a risk that we break something. Perhaps we will change it for 3.0.
Re: Quirks Mode or Standard Mode in RAP? [message #1693083 is a reply to message #1693082] Tue, 21 April 2015 14:54 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
Thanks Tim - I guess it doesn't matter either way, as long as it works!


---
Just because you can doesn't mean you should
Re: Quirks Mode or Standard Mode in RAP? [message #1693431 is a reply to message #1693083] Fri, 24 April 2015 08:36 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
Hi again Tim... our customer is asking for some more clarification on Quirks Mode in RAP, so wonder if you can provide some suitable responses...

Can you explain the relationship between the quirks doctype declaration and RAP's usage of http-equiv?

For instance:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" >
<!--- IE9 render in standard mode, all older versions in quirksmode --->
<meta http-equiv="X-UA-Compatible" content="IE=5,9,10,11;" >

As per https://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx

Should meta http-equiv="X-UA-Compatible" content="IE=5,9,10,11;" take precedence over <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">? Would there be issues with iframe usage?

We seem to be defaulting to quirks document mode (when testing with IE11) despite content="IE=5,9,10,11" declared in the head. A few things I noticed in previous testing/investigation;

- Quirks mode is different within pre-IE 10 in comparison to anything IE10 and later.
- My understanding is quirks mode doesn't exist in Project Spartan which will likely ship with Windows 10. We want to be best positioned moving forward.
- Relying upon quirks mode for IE doesn't take advantage of IE11 'compliance' to standards. If we made changes to accommodate a quirks document mode, if we considered giving Chrome a try there would be issues whereas IE11/Chrome displayed nearly identical.

Thanks, John


---
Just because you can doesn't mean you should
Re: Quirks Mode or Standard Mode in RAP? [message #1694576 is a reply to message #1693431] Wed, 06 May 2015 12:28 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
Any thoughts on the above response?
The concern is what happens when Quirks Mode is removed altogether in the browser, from IE12 (AKA Spartan) for example, and RAP stops working?
In IE11, Quirks Mode is considered deprecated already - it still works, but they say that you shouldn't use it (see the link in the previous post).
Can this be confirmed, or explained please?
Thanks, John


---
Just because you can doesn't mean you should
Re: Quirks Mode or Standard Mode in RAP? [message #1694604 is a reply to message #1694576] Wed, 06 May 2015 15:32 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi John,
since RAP 3.0M7 standard mode is used in all browsers. The quirks mode
DOCTYPE is removed.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Quirks Mode or Standard Mode in RAP? [message #1694606 is a reply to message #1694604] Wed, 06 May 2015 15:37 Go to previous message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
That's great - thanks for the info!


---
Just because you can doesn't mean you should
Previous Topic:Disabling colour mask in RAP
Next Topic:Browser.setText causes 404 in Tomcat
Goto Forum:
  


Current Time: Thu Apr 25 10:14:16 GMT 2024

Powered by FUDForum. Page generated in 0.03049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top