Re: [whatwg] HTML syntax: comments before doctype and doctype sniffing

2007-06-18 Thread Martin Payne

Philip Taylor wrote:

Hmm, that might have been some unfortunate line wrapping - it's
probably better to write:




Ah yes, I lost one of the spaces when I unwrapped it. I get the same 
results as you now. :o)


--
Martin Payne

email: [EMAIL PROTECTED]
www: http://www.martinpayne.co.uk/


Re: [whatwg] HTML syntax: comments before doctype and doctype sniffing

2007-06-18 Thread Martin Payne

Philip Taylor wrote:

In Firefox 2:

javascript:s='';for(i=0;i<1006;++i)s+='
';window.location='data:text/html,'+s+'document.write(document.compatMode)'

javascript:s='';for(i=0;i<1007;++i)s+='
';window.location='data:text/html,'+s+'document.write(document.compatMode)'

The first produces CSS1Compat, the second BackCompat. As far as I can
tell, Firefox requires the doctype to be found when parsing [using
standards-mode rules] the first 1024 characters (not bytes) from the
first non-whitespace character, and then it reparses the whole
document in quirks mode if necessary.


Not for me it doesn’t (Mozilla/5.0 (X11; U; Linux i686; en-US; 
rv:1.8.1.4) Gecko/20070603 Fedora/2.0.0.4-2.fc8 Firefox/2.0.0.4). Both 
render in standards mode for me.


--
Martin Payne

email: [EMAIL PROTECTED]
www: http://www.martinpayne.co.uk/


Re: [whatwg] P element's content model restrictions

2007-05-28 Thread Martin Payne

Leif Halvard Silli wrote:

I'd like to question these restricions. I think that at the very least, TABLE 
should be allowed inside the P element. The reason is that MSIE (I tested 
version 6 and 7) accept TABLE in P, regardless of whether it is in Quirks-Mode 
or in Standards-Mode. Even Firefox-Opera-Safari (FirOpSa) allow TABLE inside P 
- allthough they only do so when in Quirks-Mode.
  


When would it ever make sense to do this though? Surely you would never 
want to put a table inside a paragraph, because tables and paragraphs 
are two totally different things. I also can’t see why you would put a 
paragraph inside a paragraph—surely it should either just be one 
paragraph, or be two completely separate paragraphs.


--
Martin Payne

email: [EMAIL PROTECTED]
www: http://www.martinpayne.co.uk/