Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7973

Re: jQuery takes down the Guardian

From Matt McDonald <matt@fortybelow.ca>
Newsgroups comp.lang.javascript
Subject Re: jQuery takes down the Guardian
Date 2011-11-03 19:16 -0600
Organization A noiseless patient Spider
Message-ID <j8vecn$9fl$1@dont-email.me> (permalink)
References <32fd8b28-5e5b-4d8e-818b-49b12ccdac2b@a7g2000yqd.googlegroups.com> <5809e801-f3de-4455-990e-bb80b4635f5d@v5g2000vbh.googlegroups.com> <j8v255$olk$1@dont-email.me> <afac1af0-1b98-4de4-b34b-f763df2411fb@h24g2000yqm.googlegroups.com>

Show all headers | View raw


On 11/3/2011 5:30 PM, RobG wrote:
> However, the HTML disabled attribute doesn't have a value at all, its
> presence or absence changes the value of the related boolean DOM
> property (something that is maintained in HTML5[1]), which is what the
> document claimed to be).

It all depends on the doctype, really.
HTML 4.01[0] and HTML 5[1] validate both the minimized and maximized 
forms, so (psuedocode):

* boolean
* boolean=""
* boolean="boolean"

XHTML 1.0 only validates the maximized form[2], so (pseudocode):

* boolean="boolean"

> The authors of HTML5 seem to delight in confusion since they
> constantly refer to "attributes" in the context of both HTML
> attributes and DOM properties.

Yes, the usage of "IDL attribute" as an alias for "DOM property" is 
quite confusing upon first glance. It seems it's because "idl" is the 
filetype in which these properties are defined as "attributes". Here's a 
look at one:

http://www.w3.org/TR/DOM-Level-2-HTML/idl/html2.idl

Clear as mud, right? ;)

> It may set the related DOM "disabled" property to true.

Ha, good catch. I was in a hurry this afternoon, so forgive the lack of 
elaboration.

Not to be a stickler, but I'd suggest linking to the HTML 5 spec via the 
multipaged version[3]. The full spec is a real hog. :)

[0]: http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.3.4.2
[1]: 
http://dev.w3.org/html5/spec/common-microsyntaxes.html#boolean-attributes
[2]: http://www.w3.org/TR/xhtml1/#h-4.5
[3]: http://dev.w3.org/html5/spec/spec.html

-- 
Matt McDonald: Web/Flash Developer; Edmonton, Alberta, Canada

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

jQuery takes down the Guardian David Mark <dmark.cinsoft@gmail.com> - 2011-11-03 12:52 -0700
  Re: jQuery takes down the Guardian RobG <rgqld@iinet.net.au> - 2011-11-03 13:56 -0700
    Re: jQuery takes down the Guardian Matt McDonald <matt@fortybelow.ca> - 2011-11-03 15:47 -0600
      Re: jQuery takes down the Guardian Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-04 00:24 +0100
      Re: jQuery takes down the Guardian RobG <rgqld@iinet.net.au> - 2011-11-03 16:30 -0700
        Re: jQuery takes down the Guardian Matt McDonald <matt@fortybelow.ca> - 2011-11-03 19:16 -0600
          Re: jQuery takes down the Guardian Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-04 11:05 +0100
          Re: jQuery takes down the Guardian Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-11-04 13:25 +0100
            Re: jQuery takes down the Guardian Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-04 15:33 +0000
    Re: jQuery takes down the Guardian "J.R." <groups_jr-1@yahoo.com.br> - 2011-11-03 22:42 -0200
  Re: jQuery takes down the Guardian Andrew Poulos <ap_prog@hotmail.com> - 2011-11-04 12:50 +1100
    Re: jQuery takes down the Guardian David Mark <dmark.cinsoft@gmail.com> - 2011-11-04 03:37 -0700
  Re: jQuery takes down the Guardian "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2011-11-05 07:36 -0700

csiph-web