One thing I am a little worried about: with any book of this nature I can virtually guarantee that anyone who reads it will absolutely love some of the chapters and absolutely hate others. We certainly saw that in the review stages with early drafts of the manuscript. However, we also saw that the reviewers couldn't agree on which chapters they loved and which they hated. In fact, a chapter that one reviewer hated was usually another reviewer's favorite and vice versa.
There's no place like 127.0.0.1
Elliotte Rusty Harold<br />Author of <a href="http://cafe.elharo.com/web/refactoring-html/" target="_blank" rel="nofollow">Refactoring HTML</a>
Technically that would be "validity" and not "well-formedness", no?Originally posted by Bear Bibeault:
Elliotte, when talking about well-formedness are you mostly referring to the much-debated practice of using non-standard attributes as metadata in the HTML markup?
Yes, that's why I asked the question. I've never heard any web professional worth his salt religiously argue against properly closing tags or quoting of attributes, so I was wondering what controversy Elliotte has experienced in this regard.Originally posted by Paul Clapham:
Technically that would be "validity" and not "well-formedness", no?
I do not believe that "well-formed" is the proper term for that. "Well-formedness" usually refers to whether the XML has proper and valid syntax.Originally posted by Kenneth Love:
Like using tables for layout. It's valid, but it's not well-formed.
In web page design, and generally for all markup languages such as SGML, HTML, and XML, a well-formed element is one that is either:
* opened and subsequently closed,
* an empty element, which in that case must be terminated,
* properly nested so that it does not overlap.
For example, in HTML: <b>word</b> is a well-formed element, while <i><b>word</i> is not, since the bold element is not closed. In XHTML, empty elements (elements that inherently have no content) should be closed by putting a slash at the end of the opening tag, e.g. <img />, <br />, <hr />, etc. In HTML, there is no closing tag for such elements, and no slash is added to the opening tag.
Furthermore, if an element has any attributes, each attribute value must be properly quoted.
In a well-formed document,
* all elements are well-formed, and
* a single element, known as the root element, contains all of the other elements in the document.
There's no place like 127.0.0.1
This can add roughly two bytes per attribute value to the file size. If you�re Google and are counting every byte on your home page because you serve gigabytes per second, this may matter. This should not concern anybody else.
Elliotte Rusty Harold<br />Author of <a href="http://cafe.elharo.com/web/refactoring-html/" target="_blank" rel="nofollow">Refactoring HTML</a>
Originally posted by Bear Bibeault:
I remember at some point in my series of interviews with them discussing using the <img> tag to make simple and low-overhead Ajax calls
Originally posted by Bear Bibeault:
When the src attribute of the <img> is set, it hits the server with the URL, which can possess a query string just like any other URL. This is very low in overhead compared to an XMLHttpRequest-initiated request.
Ah yes, I forgot about google. I remember at some point in my series of interviews with them...
There's no place like 127.0.0.1