Re: [whatwg] Fwd: Make quoted attributes a conformance criterion

2009-07-30 Thread Elliotte Rusty Harold
On Mon, Jul 27, 2009 at 3:29 AM, Jeremy Keithjer...@adactio.com wrote:

 I concur. And I say that as someone who likes the XHTML-like syntax (always
 closing tags, always quoting attributes, etc.). I don't think my personal
 preference for writing markup should be enforced in the spec; it should be
 enforced in the lint tools.

If the HTML 5 spec actually enforced anything, I would agree with you.
However the HTML 5 spec differs radically from the specs for
JavaScript, C++, Java, and so forth in that browsers will still accept
non-conforming documents and hopefully parse and render them in a
defined way. Making non-quoted attributes non-conformant is more akin
to a lint suggestion than a hard and fast ruie. There is no such thing
as a compile error in HTML 5. The worst an author will get is a
warning, and a reader won't even see that.

-- 
Elliotte Rusty Harold
elh...@ibiblio.org


[whatwg] Fwd: Make quoted attributes a conformance criterion

2009-07-27 Thread Jeremy Keith

Maciej wrote:
So, in conclusion, having a baseline for correct syntax may actually  
make it easier to develop an ecosystem of style-checking tools.  
However, this makes it important to keep the core set of syntax  
errors relatively minimal. I'm not sure HTML5 as currently drafted  
entirely hits that balance, but mandating optional tags or requiring  
double quotes on attributes would be a move in the wrong direction.


I concur. And I say that as someone who likes the XHTML-like syntax  
(always closing tags, always quoting attributes, etc.). I don't think  
my personal preference for writing markup should be enforced in the  
spec; it should be enforced in the lint tools.


The comparison with JavaScript is a good one, I think:
JavaScript, C and C++ are examples of languages where conforming  
syntax is strictly defined, yet tools are available that do  
additional static analysis for both style and correctness.


Jeremy

--
Jeremy Keith

a d a c t i o

http://adactio.com/